General Preparation
Building Ogre from Source Files
Dependencies
inside ogre_src_v1-7-3
ogre_src_v1-7-3\Dependencies\src\OgreDependencies.VS2010.sln
solutionogre_src_v1-7-3
to enter location of source codeogre_built
ogre_built
directory and build the OGRE.sln
solutionSampleBrowser_d.exe
under ogre_built\bin\debug
(if built with the debug configuration)Creating Your Ogre Application
Use Multi-Byte Character Set
.\Debug\$(ProjectName).exe
.\Debug
C:\Development\ogre_src_v1-7-3\OgreMain\include;C:\Development\ogre_src_v1-7-3\Dependencies\include;C:\Development\ogre_src_v1-7-3\Dependencies\include\OIS;C:\Development\ogre_src_v1-7-3\Samples\Common\include;C:\Development\ogre_built\include
C:\Development\ogre_built\lib\Debug; C:\Development\ogre_src_v1-7-3\Dependencies\lib\Debug
OgreMain_d.lib;OIS_d.lib;%(AdditionalDependencies)
C:\Development\ogre_built\bin\debug
to your windows system PATH environment variable (so the Ogre DLLs can be found)resources_d.cfg
and plugins_d.cfg
into the folder with your new Ogre application (local Ogre configuration)TutorialApplication.ccp
inside the TutorialApplication::createScene(void)
function, build and run.Ogre::Entity* ogreHead = mSceneMgr->createEntity("Head", "ogrehead.mesh"); Ogre::SceneNode* headNode = mSceneMgr->getRootSceneNode()->createChildSceneNode(); headNode->attachObject(ogreHead); // Set ambient light mSceneMgr->setAmbientLight(Ogre::ColourValue(0.5, 0.5, 0.5)); // Create a light Ogre::Light* l = mSceneMgr->createLight("MainLight"); l->setPosition(20,80,50);
- You should now see a green Ogre head!