Inspired by Skeel Keng-Siang Lee's fantastic tutorial on soft body physics (http://cg.skeelogy.com/introduction-to-soft-body-physics-in-xna/)
and for the sake of learning I wrote a little MAXScript that can
simulate cloth. It is pretty much hacked together, basic and very
limited, meaning there is no UI, you have to know what you are doing
and there is no collision detection. It is pretty slow too but it was
more for looking into new algorithms than using it for actual
production. Who knows, maybe it will evolve into something better and a
more universal thing for little simulations in character / vehicle rigs
etc.
There is a preview on youtube:
http://www.youtube.com/watch?v=V30Tygl-hxE
In case anyone wants to check it out, I uploaded the script and max
files (2010) here (just run the script and it will start simulating).
It uses Verlet integration without velocities and a simple spring
model. There are three types of springs (structural, shear and bend)
and the two corner points are constraint to helper objects. There is
gravity and a very simple wind force to add some randomness. But I am
planning to write a real wind function with better turbulence.
Have fun !
Markus
Jeff Lim · 2009-08-05
MarTroYx · 2009-08-04