Skip to main content

History: Talk:Basic Tutorial 3

Source of version: 1 (current)

Copy to clipboard
            Tutorial modifications for Dagon:

!!!The Root Object and -SceneManager Creation:
~pp~ mSceneMgr = mRoot->getSceneManager(ST_EXTERIOR_CLOSE);~/pp~
needs to be
~pp~ mSceneMgr = mRoot->createSceneManager(ST_EXTERIOR_CLOSE, "ExampleSMECInstance");~/pp~
((User:Aladrin|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:

~pp~ OGRE EXCEPTION(5:ItemIdentityException):  You have not created a camera yet! in TerrainRenderable::_calculateCFactor at [code path] (line 662)
~/pp~
((User:Tvienti|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:
~pp~    void chooseSceneManager(void)
    {
        mSceneMgr = mRoot->createSceneManager(ST_EXTERIOR_CLOSE);
    }
 
    void createScene(void)
    {
        mSceneMgr->setWorldGeometry("terrain.cfg");
    }
~/pp~
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.

((User:Clay|Clay)) 00:46, 5 July 2007 (EST)

Success!  Thanks for pointing out my oversight :)
((User:Tvienti|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. ((User:Nullmech|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)