physx implementation: error in objects positions

ja0335

04-07-2009 18:09:05

hi..

Currently i have a problem and really i don't found the solution for it, please look this two videos for understand me best
http://www.youtube.com/watch?v=e4B85US68PA
http://www.youtube.com/watch?v=yG0ITdQWBaA

As you can see in the first video the cloth is falling down in the ground plane whit out obstacles i put the node in the y pos 20, it fall but it stop in the 20 y position is how it assumes my set y pos as the zero pos or some thing like this .

In the second video i create a static box in the y pos 10, it is correctly placed but when the cloth fall down it again assumes other y coordinates an crash with the box 10 units up;

The strange is that it situation only occurs with cloths not with basic shapes or convex shapes. I am using the method "getMeshInformation" and it is ok for the simulation of convex shapes but whit clothes i have this problem

thanks for some help

betajaen

04-07-2009 19:17:03

Do you have a visual debugger in your PhysX implementation? Because that would be really handy to diagnose things.

I expect you have a reason; but why not switch to Bloody Mess 1.5.5? It has cloth now, and it's extremely quick and efficient.

ja0335

04-07-2009 20:54:17

Do you have a visual debugger in your PhysX implementation? Because that would be really handy to diagnose things.

I expect you have a reason; but why not switch to Bloody Mess 1.5.5? It has cloth now, and it's extremely quick and efficient.


ThankĀ“s for your response. I solved the problem of the Y positions with some modifications in the mesh update now is ok.

Currently i am having problems with the bounding box of the cloths and some vertices for any reason do its own simulation.

I can not use your Bloody Mess because the implementation of the physx with some rendering system( in this case Ogre) is my project in the college, as you know i can't use your code :cry:

betajaen

04-07-2009 21:52:32

Have a peak at how 1.5.5 renders cloth, it isn't really difficult. Just lots of binding, copying code and making things safe. You shouldn't need to alter the vertices or indices. If everything's neat and straight to the point then it should be exactly where it should be. :D

ja0335

05-07-2009 01:30:05

hi.

here the video of my wraper and the bug
http://www.youtube.com/watch?v=vxxfztVRNbk

i had corrected many bugs in my wraper but here is the last one.
The vertices in two ledges of the cloth. Its continue apart of the others. May be the binding? how can i detect the origin of this problem :( help me please!!!!

betajaen

05-07-2009 10:49:07

It looks like your not copying all of the vertices properly.