Tutorial modifications for Dagon:
The Root Object and -SceneManager Creation:
mSceneMgr = mRoot->getSceneManager(ST_EXTERIOR_CLOSE);
needs to be
mSceneMgr = mRoot->createSceneManager(ST_EXTERIOR_CLOSE, "ExampleSMECInstance");
William (Aladrin) 18:22, 11 March 2006 (CST)
It still works without that change. I've added a note about naming SceneManagers though. -Clay
Won't compile
If you follow the tutorial up to where it first tells you to compile, it won't compile. Error:
OGRE EXCEPTION(5:ItemIdentityException): You have not created a camera yet! in TerrainRenderable::_calculateCFactor at [code path] (line 662)
Tvienti 21:45, 4 July 2007 (BST)
The first compile note is in the Getting Started section, and it tells you specifically not to run the application since it will crash...
The second compile note is after the Adding Terrain to the Scene section, and it works for me. Be sure you've added the setWorldGeometry to the createScene function and not the chooseSceneManager function. Like this:
void chooseSceneManager(void) { mSceneMgr = mRoot->createSceneManager(ST_EXTERIOR_CLOSE); } void createScene(void) { mSceneMgr->setWorldGeometry("terrain.cfg"); }
If you are still having problems, could you be a little more specific about where the issue is occurring and maybe post the code somewhere? Thanks.
Clay 00:46, 5 July 2007 (EST)
Success! Thanks for pointing out my oversight ๐
Tvienti 01:57, 6 July 2007 (BST)
DirectX exponential fog
The tutorial says that with the DirectX renderer, exponential fog might cause the screen to be completely fogged out unless you move the call to setFog to after the call to setWorldGeometry. I noticed the opposite effect; I saw no fog under the DirectX renderer until I moved the call to after setWorldGeometry. Nullmech 20:27, 24 February 2008 (GMT)
External Images Not Found
All of the external images are unavailable. Such as http://www.idleengineer.net/images/beginner03_2.png and so forth. -Solitude 16:09, 14 April 2009 (GMT+2)