.xm cloth crash,betajaen,help

arsenalman

03-03-2011 07:36:21

1.code as following:
if (mClothMesh == 0)
mClothMesh = mMeshManager->load("ogre://General/dress.xm");
NxOgre::ClothDescription desc;
desc.mMesh = mClothMesh;
desc.mThickness = 0.2;
desc.mFriction = 0.5;
desc.mFlags |= NxOgre::Enums::ClothFlags_BendingResistance;
desc.mFlags |= NxOgre::Enums::ClothFlags_TwoWayCollisions;
desc.mGlobalPose.set(NxOgre::Vec3(0,0,0));
desc.mGlobalPose.set(-NxOgre::Math::HalfPi, NxOgre::Enums::X);
cloth = mRenderSystem->createCloth(desc);

when i run this code,everything is all right except the last line,and i debug into,when i run the line Cloth* cloth = GC::safe_new4<Cloth>(description, renderable, rp, this, NXOGRE_GC_THIS);, i got

"Unhandled exception at 0x0bbd8b58 in physxcloth.exe: 0xC0000005: Access violation reading location 0xf7479328." i used the Flour to make dress.xm.
sorry for my bad english, i need your help.
2.triangles are all convex in math,why physx say convex or concave triangles?what's the difference between:
ruby ogrexmltoflower triagnle barrel.mesh.xml and ruby ogrexmltoflower convex barrel.mesh.xml?
help ! help !

julio

03-04-2011 02:42:17

hey,

did you get any progress on this? how did you solve it?

thanks!

betajaen

03-04-2011 08:30:45

Last time I checked. Cloth works fine in Detritus and BuggySwires.

What is the problem julio?