dronbas
23-12-2010 17:00:55
Hi!
I have PhysX SDK 2.8.1., Detritus and Critter. Almost all nxogretutorials work well, including those that simulate cloth (flags). But 1004 tutorial (Pipes) crashes.
In my simple application I wrote the code:
NxOgre::ClothDescription clDescr;
clDescr.mMesh = MeshManager::getSingleton()->load("ogre://balloon.xcl");
clDescr.mDensity = 0.15f;
clDescr.mThickness = 0.2f;
clDescr.mFriction = 0.25f;
clDescr.mFlags |= NxOgre::Enums::ClothFlags_Pressure;
clDescr.mPressure = 1.0f;
clDescr.mGlobalPose.set(NxOgre::Vec3(10, 5, 0));
NxOgre::Cloth* cloth = mRenderSystem->createCloth(clDescr);
In createCloth the follwing line gives a crash when calling GC::safe_new4<Cloth>
mScene->createCloth(description, renderable, NxOgre::Enums::Priority_MediumLow);
Unhandled exception at 0x06fa89c7 (PhysXCore.dll) in VHSample.exe: 0xC0000005: Access violation reading location 0xfe78173c.
What can be wrong?
I have PhysX SDK 2.8.1., Detritus and Critter. Almost all nxogretutorials work well, including those that simulate cloth (flags). But 1004 tutorial (Pipes) crashes.
In my simple application I wrote the code:
NxOgre::ClothDescription clDescr;
clDescr.mMesh = MeshManager::getSingleton()->load("ogre://balloon.xcl");
clDescr.mDensity = 0.15f;
clDescr.mThickness = 0.2f;
clDescr.mFriction = 0.25f;
clDescr.mFlags |= NxOgre::Enums::ClothFlags_Pressure;
clDescr.mPressure = 1.0f;
clDescr.mGlobalPose.set(NxOgre::Vec3(10, 5, 0));
NxOgre::Cloth* cloth = mRenderSystem->createCloth(clDescr);
In createCloth the follwing line gives a crash when calling GC::safe_new4<Cloth>
mScene->createCloth(description, renderable, NxOgre::Enums::Priority_MediumLow);
Unhandled exception at 0x06fa89c7 (PhysXCore.dll) in VHSample.exe: 0xC0000005: Access violation reading location 0xfe78173c.
What can be wrong?