[Closed] MAXScript cloth simulator
Hi,
Inspired by Skeel Keng-Siang Lee’s fantastic tutorial on soft body physics ( http://www.ziggyware.com/readarticle.php?article_id=229&rowstart=0 ) 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.
Here is a preview:
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):
http://www.projectgemini.com/WIP/VerletClothSim.ms
http://www.projectgemini.com/WIP/VerletClothSim.max
http://www.projectgemini.com/WIP/VerletClothSim.max
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