Setting up Ogre3D (Windows)

This page details the steps required for setting up Ogre3D on Windows systems and compile and run one or more samples.

It is divided in three sections:

  • The first describes how to configure your environment on the computers used in DJCO/GameDev classes using the pre-installed versions
  • The second describes how to install Ogre3D from scratch on a Windows computer
  • The last section provides pointers for information on installing on different platforms

Preparing installation on DJCO/GameDev computers

Ogre3D has been pre-installed on these computers, but as all the data resides in a read-only partition, you will not be able to compile or run the samples (running gives an error because it tries to rewrite a config file at startup).

The Ogre version used is version 1.6.5, and it is installed in the folder C:\Programs\OgreSDK.

Therefore, you must accomplish two steps to be able to compile and run the samples and your own code:

  • Copy the following directories from the OgreSDK folder to a folder on a writable disk (the temp disk, your home/desktop folder, etc.)
    • bin
    • media
    • samples
  • Go to Control Panel, Classic View, System, Advanced, Environment Variables and create a new user environment variable named OGRE_HOME, pointing to the folder C:\Programs\OgreSDK (Make sure Visual Studio is closed at this point)

Confirm that everything is ok by going to your copy of the samples folder, opening the solution file in Visual Studio, and compiling and running one of the projects.

Installing on another computer

To install Ogre3D on a computer with MS Visual Studio 2008 with SP1, just download and install the Ogre3D 1.6.5 SDK Installer.

If you have no writing restrictions on this computer, you may compile and run the samples directly from the SDK's installation tree.

Installing on other platforms or setups

For other platforms/VC version/Ogre version, check the Ogre 3D SourceForge repository for other distributions, and the SDK Installation pages for detailed instructions.