Samir
11-11-2005 08:30:24
Hi,
The Ogre::SceneNode::showBoundingBox function doesn't work in the latest PLSM2. It used to show the bounding box just fine before, but not anymore. Other scene managers show the bounding box but PLSM2 doesn't.
If you want to see what I mean, compile 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 and the selection box shows up.
Now if you change the chooseSceneManager function from this:
to this:
and in the createScene function replace this:
with this:
Everything works ok except the bounding box doesn't show up anymore!
So this is definitely an issue with the latest PLSM2.
The Ogre::SceneNode::showBoundingBox function doesn't work in the latest PLSM2. It used to show the bounding box just fine before, but not anymore. Other scene managers show the bounding box but PLSM2 doesn't.
If you want to see what I mean, compile 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 and the selection box shows up.
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");
Everything works ok except the bounding box doesn't show up anymore!
So this is definitely an issue with the latest PLSM2.