We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › dook*
Page Index Toggle Pages: 1
dook* (Read 1360 times)
dook*
Oct 21st, 2009, 12:35pm
 
dook* is a simple & sketchy catenary cloth modeller.

...


it uses traer.physics for particle spring simulation.

source + applet here:

http://www.introspector.be/index.php?/research/dook/
Re: dook*
Reply #1 - Oct 28th, 2009, 1:17pm
 
Very nice. I wish I had something like this last semester when I was teaching classical mechanics. Could you briefly tell me how you did your calculation?
Re: dook*
Reply #2 - Oct 28th, 2009, 6:08pm
 
Very nice! The different modes are great!
Have a look at my version if you want, www.num3ric.com.
It's the fifth icon.

Or the direct link: (Use ARROWS and SPACEBAR)
http://www.er.uqam.ca/nobel/r13075/num3ric/proj/catenary/applet/index.html

What I'd like to try is to make a spherical one, where the gravity is all toward one point in the center.

Eric
Re: dook*
Reply #3 - Oct 28th, 2009, 11:03pm
 
liudr wrote on Oct 28th, 2009, 1:17pm:
Could you briefly tell me how you did your calculation

instrospector can probably answer better than me, but he already says that he uses traer.physics which probably does most of the calculations. These are based on attractions/repulsions/constraints (of particles, the sketch probably "just" visualize the network of forces between them), using some form of numerical integration (Runge-Kutta 4 for Traer, IIRC).
The sources (of the sketch, and of the physics library) are available...
Re: dook*
Reply #4 - Oct 29th, 2009, 12:53am
 
PhiLho is absolutely right.  The physics calculations are done by traer.physics library using Runge-Kutta 4 integrator.  

Every vertex of the mesh represents a particle with a certain mass, while every edge represents a spring between two particles, which has a certain strength and a rest length.  

In this version all particles have the same mass, all springs have the same characteristics.  a few of these particles are fixed (corners, sides and some random).

As said in the source, i'm working on a version where particles and springs characteristics will be editable, and that allows other topologies then the rectangular grid.


@num3ric:
good to see yours, and such nice commented and structured code Wink
i should learn that. The different modes was one of the things i wanted to learn by doing this.  check out wbluts version of it: http://www.flickr.com/photos/wblut/4033138486/


Page Index Toggle Pages: 1