buggyswires visualdebugger

joaopccosta

15-02-2011 16:10:10

Greetings. I've ported my app from nxoger 1.6 to 1.7... and now i'm having quite some problems getting the visual debugger to work.


mRenderSystem = new Critter::RenderSystem(mScene, mSceneMgr);
mVisualDebugger = new NxOgre::VisualDebugger(mWorld);


I create it this way... now how i can't really figure out how i can make it work like a toggle switch, turning it on or off.


if(evt.key == OIS::KC_B){
if(mRenderSystem->hasDebugVisualisation())
mVisualDebugger->disable();

else{
mVisualDebugger->enable();
mVisualDebugger->draw();
}
}


Can anyone help? Thanks

betajaen

15-02-2011 16:14:43

mRenderSystem->createVisualDebugger();

joaopccosta

16-02-2011 15:44:02

It works!
but... i wonder... the debugger in the NxOgre1.6 showed more info. Am i missing something? :S

Thanks!

betajaen

16-02-2011 15:45:32

The VisualDebugger has a Description class now. You can set up your preferences and pass it onto that function.

joaopccosta

16-02-2011 15:46:48

ahah solved it right now.

Thanks :)

NxOgre::VisualDebuggerDescription desc;
desc.showAll();
mVisualDebugger = mRenderSystem->createVisualDebugger(desc);