[BUG] showBoundingBox doesn't work in latest PLSM2

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:

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.

fiesch

11-11-2005 09:07:04

i have the same issue

tuan kuranes

11-11-2005 11:01:21

fixed.
Waiting til CVS commit works. (sf repository is currently read only)

added this at PagingLandScapeOctreeNode::_addToRenderQueue end

// check if the scene manager or this node wants the bounding box shown.
if (getShowBoundingBox()) //|| mShowBoundingBox) SM show.
_addBoundingBoxToQueue(queue);

fiesch

11-11-2005 11:09:16

thx for another awesomely quick fix :D

Samir

11-11-2005 19:15:49

yeah...thanks tuan kuranes for the fix.

tuan kuranes

13-11-2005 08:55:11

in CVS now.