mWorld->debug() does nothing

foxbat

11-07-2006 05:11:46

Hi. I can't get mWorld->debug(true) to do anything. I'm calling it after the level is loaded, and with the debug material in place. When debug() is called, I get this in the log file:

Texture: axes.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.

I'm using a fairly recent cvs version of NxOgre, built under Azathoth.

betajaen

11-07-2006 08:33:04

I get this too sometimes.

What about the tutorials, when you press F2?

foxbat

11-07-2006 09:10:57

Yes, debug in tutorials works when pressing F2. I can't see any difference between the tutorial debug code, and the code in my project, so I'm not sure what's going on.

betajaen

11-07-2006 09:15:19

I think it's of two/three possibilities.

- Either the debug mode is being asked to debug, before the frame listener is "listening". I find this doesn't work at all for some reason, perhaps the window isn't open at this time.

- It is being asked to debug when the frame listener is "listening", i.e. in a frame started... If it doesn't render then, for some reason with the Dagon changes it can't find a suitable scene manager to debug too.

- Long shot, but your away from the "centre" of the debug node mesh, thus it's not being rendered because your not seeing the centre.

I need to rewrite a portion of the debugging system anyway.


Also, I noticed your using Azathoth, any chance you can upgrade to Dagon? :wink:

foxbat

12-07-2006 02:00:16

I managed to get it working. The problem was that I was creating the world before the frame listener was registered.

Thanks for the help.