Page 1 of 2

Cloth simulating with newton and irrlicht

Posted: Tue Jun 27, 2006 5:22 pm
by hellbound
i'm using newton with irrlicht... how can i integrate a cloth sim in there?

Posted: Tue Jun 27, 2006 6:48 pm
by Acki
What do you mean ???
Something like a jacket (coat) or tousers ????
This has nothing to do with Newton, or physics at all, I think...

But you should really search for a Newton forum for questions related to Newton !!! :evil:

Posted: Tue Jun 27, 2006 9:38 pm
by Halan
i think he mean that the clothes move physically correct

Posted: Tue Jun 27, 2006 11:23 pm
by Acki
Hmmm, I see...
Well, you could create the clothes with bones for the animations and let them act like a ragdoll or joint-chains...
But this is not possible with the standard Irrlicht sdk...
Irrlicht doesn't support direct manipulating of bones, for this you have to add my CustomBones extension to Irrlicht !!!
This should work with any physics engine...

Posted: Wed Jun 28, 2006 5:44 am
by hellbound
is it possible by using irrlicht and newton to attach a system to the object, consisting of a matrix of points that are tied by some kind of springs and that can move according to the forces applied to them?

Posted: Wed Jun 28, 2006 11:15 am
by Baal Cadar
Yes it is.

Posted: Wed Jun 28, 2006 11:15 am
by Baal Cadar
Yes it is.

Posted: Wed Jun 28, 2006 11:16 am
by Baal Cadar
Yes it is.

Posted: Wed Jun 28, 2006 12:02 pm
by Acki
Yes, it is !!! :P

It's similar to what I meant in my 2nd reply...

Posted: Wed Jun 28, 2006 12:42 pm
by Baal Cadar
Hmm. I got an error message after posting and a refresh didn't show my post at first so I posted again. Strange.

Posted: Thu Jun 29, 2006 2:27 pm
by hellbound
can anyone give me a reference point on how can i do this in newton?

Posted: Thu Jun 29, 2006 6:37 pm
by etcaptor
Newton does not support cloths, but as Acki said you can manipulate with irrlicht joints and newton bodies and joints for creating of similar thing. I have plan to do some tests but for good cloth simulation you will need many sprites, so I suppose that this will be heavy for CPU.
For reference point look for dhelton9000 posts in newton forum or here. He made some interested experiments. Also Acki made interested demo for using of Irrlicht bones with Newton, even with Ragdoll.

Posted: Fri Jun 30, 2006 11:30 am
by hellbound
i'm actually planning to make a cloth simulation system like the one in 3d studio max 8... and i have a 450 mhz cpu and it work's perfectly on my pc ;)

Posted: Fri Jun 30, 2006 11:41 am
by hybrid
Most cloth simulations are nowadays performed by vertex shaders which could be the reason it's not that much CPU intensive! But you could use that way, too. Would be even simpler to integrate with Irrlicht meshes.

Posted: Thu Jul 06, 2006 7:46 pm
by noreg
See sample source for cloth sim included with the Apocalyx engine:
http://apocalyx.sourceforge.net/
Ready made demo app also included. Really cool, check it out.