Skip to main content

History: Talk:Intermediate Tutorial 3

Source of version: 1 (current)

Copy to clipboard
            I suspect that the below changes may be required for OGRE 1.2
(It would not compile for me otherwise, but I'm no expert)

FROM:

~pp~       // Use the terrain scene manager.
        mSceneMgr = mRoot->getSceneManager( ST_EXTERIOR_CLOSE );
~/pp~
TO:

~pp~       // Use the terrain scene manager.
        mSceneMgr = mRoot->'''create'''SceneManager( ST_EXTERIOR_CLOSE );
~/pp~
AND, FROM :

~pp~       // CEGUI setup
       mGUIRenderer = new CEGUI::OgreCEGUIRenderer(mWindow, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, ST_EXTERIOR_CLOSE);~/pp~
TO:
~pp~       // CEGUI setup
       mGUIRenderer = new CEGUI::OgreCEGUIRenderer(mWindow, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, mSceneMgr);
~/pp~
Correct me if I'm wrong : )

Rowan :: 19/04/06


---
!!Easy Exercise
For those having trouble with the easy exercise (as I and a few others did), I posted my solution here ::

[http://www.ogre3d.org/phpBB2/viewtopic.php?t=16109]

[ Nb :: Couple of useful Wiki links there too ]

[ Rowan :: 20/04/06 ]


---
!!Probably a minor bug
I think in onLeftDragged

~pp~    mCurrentObject->setPosition( itr->worldFragment->singleIntersection );
~/pp~
should be

~pp~    if (mCurrentObject)
        mCurrentObject->setPosition( itr->worldFragment->singleIntersection );
~/pp~
In case no object has been created yet (mCurrentObject is NULL) and the user clicks and drags the cursor from outside the terrain into it. At least when I tried it, the program crashes.

Sorry for nitpicking.

!!sortByDistance()
It looks like sortByDistance (in RaySceneQuery) is called setSortByDistance() now.