MogreNewt Debugging issues [Solved]

ianhfar

08-11-2010 12:30:34

I can't really get the debugging options in MogreNewt to help.

I don't see any displayed text and no error in the Ogre log file. My Axis Aligned Bounding Boxes don't display, I get some random blue box displayed offset from everything else.

I have tried setting my MogreNext collision AA box sizes to my Mogre AABB , but my collisions don't work correctly.

Has anybody had any luck with the MogreNewt debug display?
eg.


// this should display text on screen using the BlueHighway-10 font and log the same info to log file
m_World.DebuggerInstance.ShowDebugInformation(true, true);



Thanks GantZ,

I followed your advice and I have now placed the ShowDebug with my view update, works fine
I have also found that my AABB aren't correct if I create my body/Nodes at some position other than 0,0,0.
But if I create them and then SetPositionOrientation to the new position the AABBs are correctly positioned. Is this correct ?

GantZ

08-11-2010 19:26:34

use ShowDebugInformation in your framelistener, where you update your newton world. For compiling from source code, it's a minor change. just remove m_world, and call NewtonWorldGetVersion without any parameter, and it should compile just fine.

Beauty

13-12-2010 23:10:52

Thanks GantZ,

I followed your advice and I have now placed the ShowDebug with my view update, works fine
I have also found that my AABB aren't correct if I create my body/Nodes at some position other than 0,0,0.
But if I create them and then SetPositionOrientation to the new position the AABBs are correctly positioned. Is this correct ?


ianfar, please don't reply by editing your post.
Use the reply button instead.
If you edit a post, the other people will get no report about this by e-mail. Also many users don't read a post twice (and so they don't see the addition).
Additionally it's better for the overview when you use the reply button. :wink: