PhysXDriverParams driverParams problem

Rambo

16-07-2007 09:56:22

Hi.
I have problem with "driverParams".


World::World(PhysXDriverParams driverParams)
{
mRoot = Ogre::Root::getSingletonPtr();
mDriver = new PhysXDriver(this, driverParams); <-- this is my problem

srand((unsigned)time(0));
...
...


I don't know what happen.
I don't use SimpleTutorial or other simple code.

This is my code :


//Inicjacja NxOgre (silnik fizyki)
mWorld = new World(); <-- error
mScene = mWorld->createScene("NxSceneManager",getSceneMgr());

frier

16-07-2007 10:08:35

dont think this'll work.

mWorld = new NxOgre::World("log: html");

what version of nxOgre are you using?

betajaen

16-07-2007 10:15:13

There is was a bug with the Params not working if it was a blank string, which is probably the same one you are suffering from. It was fixed in later version of 0.9.

If you do:

mWorld = new NxOgre::World("nxogre: rocks");

It should work then.

Rambo

16-07-2007 10:36:51

I use NxOgre 0.9-28.

I changed this line to :
mWorld = new NxOgre::World("nxogre: rocks");
and don't work.

Always is the same error :

Unhandled exception at 0x107534e6 in Game.exe: 0xC0000005: Access violation reading location 0x0000017c.

Rambo

16-07-2007 13:56:43

Problem is solved.
I changed my code and it's work. Debug rulez ;).

Thanks guys!

betajaen

16-07-2007 15:28:12

Good job. Was it NxOgre or your code who made the bug?

Rambo

16-07-2007 15:52:37

My code. I changed createScene.
But I think I will change some code in NxOgre or not ;). We will see.