DieHard
25-01-2007 10:48:31
Took me two different days and working between 12AM to 5AM to figure out why I'm not able to see the physics debug lines. I made a new project using the application template from Ogre's tutorials and I got the physics debug lines to work. I started comparing between my big project and the new project. The order of "setting up Ogre" was thoroughly checked and found nothing wrong.
So, I started stripping my big-complicated project. I checked my singleton code and then tried placing the "NxOgre setup code" at different places like in the createScene() method.
At the breaking point of giving up, I revisited the issue I had a long time ago with "#include <nxOgre.h>" must be on top of the header files. Looking at my highest procedures, I have three classes ObjectManager.h, InputManager.h, and ConfigurationManager.h. The culprit was the InputManager.h needing the "#include <nxOgre.h>" on top, even though I don't use it. Very strange!
After the physics debug lines worked, I started putting my code back to together. And, I noticed another problem the order of "NxOgre setup code" made my physics debug lines stop displaying! It was working in the createScene() method. So, I made another initialize method for NxOgre in my ObjectManager to be called later, right before the createScene() method.
Pardon my grammer. I'm going to bed!
So, I started stripping my big-complicated project. I checked my singleton code and then tried placing the "NxOgre setup code" at different places like in the createScene() method.
At the breaking point of giving up, I revisited the issue I had a long time ago with "#include <nxOgre.h>" must be on top of the header files. Looking at my highest procedures, I have three classes ObjectManager.h, InputManager.h, and ConfigurationManager.h. The culprit was the InputManager.h needing the "#include <nxOgre.h>" on top, even though I don't use it. Very strange!
After the physics debug lines worked, I started putting my code back to together. And, I noticed another problem the order of "NxOgre setup code" made my physics debug lines stop displaying! It was working in the createScene() method. So, I made another initialize method for NxOgre in my ObjectManager to be called later, right before the createScene() method.
Pardon my grammer. I'm going to bed!