Cloth simulating with newton and irrlicht

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
hellbound
Posts: 51
Joined: Sat Jun 24, 2006 7:39 am

Cloth simulating with newton and irrlicht

Post by hellbound »

i'm using newton with irrlicht... how can i integrate a cloth sim in there?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post 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:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

i think he mean that the clothes move physically correct
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post 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...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
hellbound
Posts: 51
Joined: Sat Jun 24, 2006 7:39 am

Post 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?
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post by Baal Cadar »

Yes it is.
No offense :)
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post by Baal Cadar »

Yes it is.
No offense :)
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post by Baal Cadar »

Yes it is.
No offense :)
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Yes, it is !!! :P

It's similar to what I meant in my 2nd reply...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post 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.
No offense :)
hellbound
Posts: 51
Joined: Sat Jun 24, 2006 7:39 am

Post by hellbound »

can anyone give me a reference point on how can i do this in newton?
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post 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.
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
hellbound
Posts: 51
Joined: Sat Jun 24, 2006 7:39 am

Post 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 ;)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
noreg
Posts: 158
Joined: Fri Jun 23, 2006 6:01 pm
Location: continental europe

Post 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.
Post Reply