A fabric design and simulation tool, built in three.js.
- May 2: added multiple options for pinned constraints, option to avoid cloth self-intersections (very slow!)
- April 27: collision detection speedup (abandoned ray-tracing)
- April 12: improved collision detection, more intuitive GUI controls, made objects transparent
- April 5: added sliders GUI, mouse control (scroll to zoom, drag mouse to change view)
- March 22: added shear & bending springs, collision detection, friction, wireframe view
To run online:
You can find the latest version of Drape here
To run on your own computer:
If you're interested in developing drape further, you'll want to download the code and run it locally. Here's how to do that:
- Download code and unzip
- Easiest way to run: Open one of the .js files with the p5 editor and press play
- Alternatively, run the code with a local server (instructions here or here).
Drape is developed by Aatish Bhatia, Demi Fang, Sigrid Adriaenssens, using three.js and starting from the cloth simulation example. This work is shared under the MIT License.
Some papers that go into the nitty-gritty of cloth simulation.
GPU Ray-Traced Collision Detection for Cloth Simulation (2015)
Ray-traced collision detection for deformable bodies (2008)
Untangling Cloth (2003)
Simulation of Clothing with Folds and Wrinkles (2003)
Robust Treatment of Collisions, Contact and Friction for Cloth Animation (2002)
Collision and self collision handling in cloth model dedicated to design garments (1997)