- Go to http://www.ogre3d.org/download/sdk.
- Download the SDK matching your IDE version.
- Download and install DirectX: directx_Jun2010_redist.exe
Run the installer:
Unpack to a suitable location:
Go to the directory of the newly installed sdk and copy the full path:
Setting the Environment Variable, OGRE_HOME.
Now, you need to set the %OGRE_HOME% environment variable. This environment variable enables you, the developer, to easily switch between different OgreSDK versions and transfer/compile Ogre3D projects of other users (portability).
To set this environment variable, enter the following in any Command Prompt window (Windows Vista/7/8/newer):
setx OGRE_HOME "<path-to-OgreSDK-here>"
If you are using Windows XP, or any prior Windows version, you will need to use the 'set' command, like so:
Take note of the use of quotation marks, as they are required, otherwise you will get several 'file not found' errors when trying to compile any Ogre3D project.
Example 1: Setting the environment variable OGRE_HOME on Windows 8:
Example 2: Setting the environment variable OGRE_HOME on Windows 7:
Go to Control Panel -> System and Security -> System. From the left navigation panel choose Advanced system settings.
Click on Environmental varable button and enter in the fields
Variable name: OGRE_HOME and in
Variable value: your path to Ogre example: C:\OgreSDK\OgreSDK_vc10_v1-8-1
Open the solution Ogre.sln with Visual Studio and build the project(could take a few minutes). Then Right click on sampleBrowser and choose: ‘Set as startup Project’.
RUN SampleBrowser and you can explore all the samples that are included with the Ogre Solution.