Coder Social home page Coder Social logo

drape's Introduction

A fabric design and simulation tool, built in three.js.

Change log

  • 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

TODO

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:

  1. Download code and unzip
  2. Easiest way to run: Open one of the .js files with the p5 editor and press play
  3. Alternatively, run the code with a local server (instructions here or here).

Credits

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.

More Reading

Some papers that go into the nitty-gritty of cloth simulation.

  1. GPU Ray-Traced Collision Detection for Cloth Simulation (2015)
  2. Ray-traced collision detection for deformable bodies (2008)
  3. Untangling Cloth (2003)
  4. [Simulation of Clothing with Folds and Wrinkles] (https://graphics.stanford.edu/papers/cloth2003/cloth.pdf) (2003)
  5. Robust Treatment of Collisions, Contact and Friction for Cloth Animation (2002)
  6. Collision and self collision handling in cloth model dedicated to design garments (1997)

drape's People

Contributors

aatishb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.