Cloth problem

mephisto

30-12-2010 02:10:17

Hello i am trying to creath cloth . I took this code from NxOgre sample1004 :

mBalloonMesh = NxOgre::MeshManager::getSingleton()->load("ogre://balloon.xcl");
NxOgre::Vec3 position(0,60,0);
NxOgre::ClothDescription desc;
desc.mMesh = mBalloonMesh;
desc.mThickness = 0.2;
desc.mFriction = 0.5;
desc.mPressure = 1.0;
desc.mFlags |= NxOgre::Enums::ClothFlags_Pressure;
desc.mGlobalPose.set(position);


When runnig, getting crash;
also the Sample1004 does not work in the SampleBrowser...

betajaen

30-12-2010 09:14:23

Your the second one to have problems with cloth lately.

However; don't use that xcl file it doesn't work. Does any of the cloth tutorials work? 1001 for example?

mephisto

30-12-2010 12:17:04

No the tutorial 1001 doesnt work. Is this a mesh problem?

betajaen

30-12-2010 12:23:58

No.

Can you give me the exact error on how it doesn't work. Along with any relevant information; versions (NxOgre/PhysX/Ogre). Does the PhysX cloth samples work. Are you using a NVIDIA graphics card.

mephisto

30-12-2010 12:38:28

No I have ATI radeon , Ogre1.72. NxOgre is the version 1.6.3329
PhysX 2.8.1
All physX samples work

About the crash I can not say something special : the code compile ... when i try to excecute it crashes. When debugging i can not get any information . The compiler says "the code isnt disponible...".

mephisto

30-12-2010 20:49:06

I exported a simple blender cube to cube.flower and then converted : Flour convert --type=cloth cube.flower
it generated a cube.xm file . I tried to create a cloth with but it still crashes.

betajaen

30-12-2010 20:56:00

That is really odd. Cloth works really well with me. Fancy sending me that xm file and I can try it out.

Also got any cloth creation code that I can see.

mephisto

30-12-2010 21:08:33

I did not changed anything , i just took the code from the example with balloon

mBalloonMesh = NxOgre::MeshManager::getSingleton()->load("ogre://General/planexm.xm");//ogre://balloon.xcl also tryied cube.xm ...
// when i export in blender i export as flour mesh file.
// i added the planexm.xm into the nxogre.zip

NxOgre::ClothDescription desc;
desc.mMesh = mBalloonMesh;
desc.mThickness = 0.2;
desc.mFriction = 0.5;
desc.mPressure = 1.0;
desc.mFlags |= NxOgre::Enums::ClothFlags_Pressure;
desc.mGlobalPose.set(position);

mRenderSystem->createCloth(desc, "nxogre.balloon");

mephisto

31-12-2010 14:10:24

Can someone tell me whats wrong?

mephisto

31-12-2010 14:37:06

I tryied to run samples 1001 , 1002, 1003, 1004 and all crashes!!!???

betajaen

31-12-2010 14:50:57

I don't know. I need more information.

Cloth WORKS for me. I'm using PhysX 2.8.4, and your on 2.8.1, that may be the reason. It may not.

mephisto

31-12-2010 15:18:47

THANKS, I will do my possible to demistify this problem...

mephisto

31-12-2010 18:08:52

This day I am assisting at something really strange ... :|

I recompiled everything with PhysX 2.8.4 NxOgre, Critter, Tutorials
When Tryied to run samples got crashes with 1001, 1003, 1002, 1004, 113, 117
When tryied to run my program using my own mesh ... it worked once , and only once... when running second time it crashes

mephisto

31-12-2010 18:18:02

I found the crash problem but still strange....
The application doesn't crash only if I reduce the application window before the scene start...(i found this accidently)
when debbuging got error at m_root->startRendering();

mephisto

31-12-2010 19:53:45

DEMISTYFIED !!!!!!!!!!!!!!!!!!!!!!!!
Finally I found the problem . I tryied to run the application using directX and OK.
So probably some GL plugin is missing ...
but finally I found :D:D
HAPPY NEW YEAR !!:D

mephisto

01-01-2011 13:55:44

When I run the app. using openGL I get this error :
Unhandled exception at 0x51e09721 in NxDetritus.exe: 0xC0000005: Access violation reading location 0x00000034.
[Frames below may be incorrect and/or missing, no symbols loaded for RenderSystem_GL_d.dll]
it happens at m_Root->startRendering();

I am using ogre3d 1.7.2