Samir
15-11-2005 17:49:21
Hi,
I'm trying to debug my app my displaying how my nodes' axes are oriented. I tried using Ogre::SceneManager::setDisplaySceneNodes but it did not work in PLSM2. So I tried using Ogre::SceneManager::showBoundingBoxes, and it did not work either. Nothing new displays in the scene. These functions work under other scene managers.
To reproduce the bug, modify the Ogre Intermediate Tutorial 3 from: http://www.ogre3d.org/wiki/index.php/Intermediate_Tutorial_3#Showing_Which_Object_is_Selected
It uses the ST_EXTERIOR_CLOSE scene manager. Node axes show up when using setDisplaySceneNodes and boxes show up when using showBoundingBoxes.
Now if you change the chooseSceneManager function from this:
to this:
and in the createScene function replace this:
with this:
Both functions don't add anything to the scene and don't work as when using the ST_EXTERIOR_CLOSE scene manager.
I'm trying to debug my app my displaying how my nodes' axes are oriented. I tried using Ogre::SceneManager::setDisplaySceneNodes but it did not work in PLSM2. So I tried using Ogre::SceneManager::showBoundingBoxes, and it did not work either. Nothing new displays in the scene. These functions work under other scene managers.
To reproduce the bug, modify the Ogre Intermediate Tutorial 3 from: http://www.ogre3d.org/wiki/index.php/Intermediate_Tutorial_3#Showing_Which_Object_is_Selected
It uses the ST_EXTERIOR_CLOSE scene manager. Node axes show up when using setDisplaySceneNodes and boxes show up when using showBoundingBoxes.
Now if you change the chooseSceneManager function from this:
void chooseSceneManager(void)
{
// Use the terrain scene manager.
mSceneMgr = mRoot->getSceneManager( ST_EXTERIOR_CLOSE );
}
to this:
void chooseSceneManager(void)
{
// Use the terrain scene manager.
mSceneMgr = mRoot->getSceneManager( ST_EXTERIOR_REAL_FAR );
}
and in the createScene function replace this:
mSceneMgr->setWorldGeometry( "terrain.cfg" );
with this:
mSceneMgr->setWorldGeometry("paginglandscape2.cfg");
// You can try these two one at a time.
mSceneMgr->showBoundingBoxes(true);
mSceneMgr->setDisplaySceneNodes(true);
Both functions don't add anything to the scene and don't work as when using the ST_EXTERIOR_CLOSE scene manager.