[BUG] setDisplaySceneNodes and showBoundingBoxes don't work

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:

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.

fiesch

15-11-2005 19:02:04

hm true i got the chance to try the new cvs yesterday and the BBox issue wasn't solved by the last commit

tuan kuranes

16-11-2005 10:54:39

fixed in cvs.

Samir

17-11-2005 17:18:14

Ogre::SceneManager::showBoundingBoxes works OK now, but Ogre::SceneManager::setDisplaySceneNodes still isn't which is more important cause I want to see how my axes are oriented.

Also, after downloading the latest CVS version, I have four white sphere following my units wherever they go. What are these?...They won't go away even if I don't call showBoundingBoxes or setDisplaySceneNodes.

tuan kuranes

18-11-2005 08:12:12

should works now.

Sphere are gone. was for debugging purpose.

Samir

18-11-2005 09:34:36

Yey...they work...I see the axis of my nodes...they look so good...this is gonna make my life so much easier.

thanks tuan for the great work :)