Multiple OgreOde bodies

SuperMegaMau

01-03-2006 14:34:37

hi,

When I try to create more than 1 moving object with OgreOde, I get this error:
An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 6
Function: PagingLandScapeOctreeSceneManager::createSceneNode
Description: A scene node with the name body_Debug already exists.
File: OgrePagingLandScapeOctreeSceneManager.cpp
Line: 598
Stack unwinding: <<beginning of stack>>


This happens with the second moving object. I don't have any SceneNode named body_Debug, and I believe this is a PLSM2 problem because it works perfectly with TerrainSM!

The problem's node name changes the 2nd, 3rd and so on like:
Description: A scene node with the name OgreOde::Geometry_1_Debug already exists. allways Geometry_1_Debug...

PS: I do have something named body, that's the OgreOde::Body itself, but not body_Debug...

tuan kuranes

01-03-2006 15:50:32

Are you really sure it's plsm2 related only ?

it's OgreOde::Body::addDebugNode() that creates that particular node.

I had similar problem, which I've fixed in my OgreOde, when re-making ragdolls works (using ogreode demos).
But I cannot remember how I fixed that...

SuperMegaMau

01-03-2006 18:15:24

Now that you mention that, I realize that this cam be related to OgreOde itself instead of PLSM2! :wink: OgreOde actualy creates this Debug Objects to show the debug lines...

Strange thing I didn't notice this with the TerrainSM... but you probably right...

Thanks...