Ogre crash at creating NxOgre

Dutchie

12-02-2008 15:07:48

Hi,

i am trying to use NxOgre again. i have a basic Ogre program with a black screen, and when i try to make NxOgre it crashes. i use version 0.9-38 of nxogre.

this is how i do it:
ogre = new Ogre::Root("", "", "Ogre.log");

[load render system and create window]


// -- Setup Scene Manager -- //
sceneMgr = ogre->createSceneManager("OctreeSceneManager");

[create camera, setup viewport]

// -- Setup Frame Listener -- //
ogre->addFrameListener(this); // my engine class is its own framelistener

// -- Setup NxOgre -- //
nxworld = new NxOgre::World("FrameListener: No, log: html");
nxscene = nxworld->createScene("Main", sceneMgr, "gravity: yes, floor: yes");


does anyone know how to fix?

betajaen

12-02-2008 16:59:18

Interesting can you trace the error by any chance?

Dutchie

12-02-2008 17:52:28

I found the problem. I had Ogre, and d3d9, the octree manager and cg manager, staticly linked. Now that i've linked it dynamicly it al works. Since NxOgre dynamicly links itself to ogre i think it gave some compatibility problems, but it is solved now.

thanks for you help anyway.