Colombia flag physx and ogre ( cloth simulation)

ja0335

10-07-2009 19:28:48

at the en :D

http://www.youtube.com/watch?v=G1RjdoYys2g

The video is stoped for video record's reasons

betajaen

10-07-2009 19:53:04

Nice!

With my Welsh flag, your Columbian flag and a few more - we can have a little UN going. ;)

ja0335

11-07-2009 17:31:19

Thanks for your comment. I finally have this result from hours of work :)

kdr35

10-01-2011 10:14:54

Hi,
I want to flag with cloth simulation. I use nvidia physx and mogre.
Can you give more information about your project or sample codes.

Thanks...

betajaen

10-01-2011 10:46:40

Then you should use the PhysX Candy wrapper.

NxOgre is only for C++ Ogre, there is no C# version available.

kdr35

10-01-2011 15:45:06

Hi,
I am new in physx + mogre. I want to create a flag application in mogre. I found one example in ogre (viewtopic.php?t=5888&f=6#p78093) , i try to convert ogre code to mogre code. I largely completed conversion but i have some problems about conversion. I didnt found properties of some class and didnt create a new cloth. While creating cloth , I have null exception.

viewtopic.php?t=5888&f=6#p78093 orginal code in ogre forum.

I have converted to mogre code:

CapsuleShapeDesc csd = new CapsuleShapeDesc(0.2f,12f);
csd.LocalPosition = new Vector3(0, -0.2f, 0);
csd.Density = 0;

PhysX.ActorDesc flagPoleDsc = new ActorDesc(csd);
flagPoleDsc.Density = 0;
PhysX.Actor flagPole = phscene.CreateActor(flagPoleDsc);

PhysX.ClothDesc cp = new ClothDesc();
cp.SetToDefault();
cp.Thickness = 0.2f;
cp.BendingStiffness = 0.5f;
cp.Friction = 0.25f;
cp.Flags |= PhysX.ClothFlags.Bending;
cp.Flags |= PhysX.ClothFlags.CollisionTwoway;
cp.Flags |= PhysX.ClothFlags.Visualization;
cp.Flags |= PhysX.ClothFlags.Hardware;
cp.WindAcceleration = new Vector3(-20, 12, -1);
cp.Density = 0.15f;

// cp.meshMaterial = "nx.flag"; //i dont find equivalent value in mogre.
// cp.height = 8; //i dont find equivalent value in mogre.
// cp.width = 0.15f; //i dont find equivalent value in mogre.

PhysX.Cloth flag = phscene.CreateCloth(cp); // I DONT CREATE A CLOTH. WHILE CRETING CLOTH , HANDLE NULL EXEPTION.

flag.AttachToShape(flagPole.Shapes[0], PhysX.ClothAttachmentFlags.Twoway);



Can you send me your ogre code and material to convert mogre code. Maybe i can solve the problem.

thanks

betajaen

10-01-2011 15:51:01

This is [b]Tutorial 1001[/b]. A sample of NxOgre using Cloth. You will need to convert any C++, code into the C# equivalent.

I will not help you any further, and please do not post in here again - unless your using NxOgre.