I made this one from the previous rope program, check it out:
http://www.hszk.bme.hu/~pg429/rongyocska/
Needs glut, windows users can get it here if the program doesn't work (just put glut32.dll in the same dir):
http://www.xmission.com/~nate/glut.html
You should be able to compile it under Debian after installing the freeglut3-dev package.
Cloth simulation
Moderator: MaxCoderz Staff
- tr1p1ea
- Maxcoderz Staff
- Posts: 4141
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: I cant seem to get out of this cryogenic chamber!
- Contact:
WOW CoBB ... THATS AWESOME!
And fast too. Do you think you could stop being a genius for just a few seconds? .
And fast too. Do you think you could stop being a genius for just a few seconds? .
Last edited by tr1p1ea on Sat 01 Jan, 2005 3:04 am, edited 1 time in total.
-
- MCF Legend
- Posts: 1601
- Joined: Mon 20 Dec, 2004 8:45 am
- Location: Budapest, Absurdistan
- Contact:
Yes, that's what I'm quite happy with: it has quite fast self-collision detection and cloths can collide with each other too (just release the red one on top of the blue to see it pour down slowly after being shot with a ball). Actually, that's almost the same thing. It also performs surface subdivision on the fly, quadrupling the resolution of the cloth at almost zero cost. Stability is fine as well, I could double the time step at this point without the simulation exploding.
The code is really a big blob of mess, but at least it's fast. In fact, this was made as an assignment for my Computer Graphics class.
The code is really a big blob of mess, but at least it's fast. In fact, this was made as an assignment for my Computer Graphics class.
Nice stuff, I liked the thing with thick cloths too
EDIT: Ah, I thought it looked weird when I disabled subdivision... I thought the answer would eventually pop up so I didn't dare to ask.
EDIT: Ah, I thought it looked weird when I disabled subdivision... I thought the answer would eventually pop up so I didn't dare to ask.
Last edited by coelurus on Fri 31 Dec, 2004 7:35 pm, edited 1 time in total.