Curtain

Description

Fabric simulation in Processing using Verlet Integration

What to do

Left click to move the curtain around.
Right click to tear the curtain.
‘G’ to toggle gravity.
‘R’ to reset the curtain

Source

Curtain @ OpenProcessing
Curtain @ Hawkee

Links

How to build a fabric simulator
How to improve your fabric simulator
Changes to Curtain

Comments 2

  1. 12/08/16

    Very cool, Blue. I’ve made a few cloth-like verlet sims, myself, but I never made mine so they can be torn. I really think that the ability to tear the sheet adds a whole lot. I’m having a little bit of trouble understanding what it is that causes my mouse to tear the fabric, though. Is it just the speed of the mouse?

  2. 12/10/11

    It’s pretty rudimentary. If two pointmasses are pushed apart far enough, then they rip. It’s not consistent across different timestep sizes, but it works.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Pingbacks 1

pingback from Changes to Curtain « DevLog July 19, 2011