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 › Volume-preserving blob
Page Index Toggle Pages: 1
Volume-preserving blob (Read 685 times)
Volume-preserving blob
Jun 6th, 2008, 11:17am
 
I'm currently playing around with some soft body algorithms to work out the kinks before trying to integrate them with JBox2d (http://www.jbox2d.org), and it's pretty easy to get some cool effects, so I figured I'd post the earliest example (this one is somewhat Gish-like): http://www.ewjordan.com/processing/VolumeBlob/

Code is linked from there, should be pretty simple to figure out if you'd like to use it.  Runs a little choppy in the browser, though.
Re: Volume-preserving blob
Reply #1 - Jun 6th, 2008, 1:41pm
 
I love it: simple but cool and fun.
Re: Volume-preserving blob
Reply #2 - Jun 6th, 2008, 3:09pm
 
That looks really awsome. i remember trying to make something like that and not being able to. So thanks for sharing! Smiley
Re: Volume-preserving blob
Reply #3 - Jun 6th, 2008, 4:14pm
 
It is nice, didn't seem to run choppy in my browser either. I glanced at the code a little, it was shorter than I thought it might be.
Re: Volume-preserving blob
Reply #4 - Jun 7th, 2008, 2:22am
 
There's a bunch more stuff like this at http://kotsoft.googlepages.com/physicsdemos - not written by me or in Processing, but it's very cool.  I absolutely love the liquid demos - that's the type of things I would love to get working, esp. with JBox2d.  Unfortunately I couldn't figure out how to reach the guy that did those demos, so I'm sort of trying to approximate.  We'll see how far I get...

Hardwire, who's doing the port of Gish to mobile phones, (http://www.gishmobile.com/) gave me some advice as to the basic physical idea behind soft blobs, though he couldn't tell me about how it's actually done in Gish (due to legal agreements, I gather).  Actually, anyone interested in physics should checkout his physics page, at http://physics.hardwire.cz/index.php, it's a very good resource for a lot of stuff.

(Edit: you're right, btw, when I tried that applet in Safari it ran perfectly, it's only crummy in Firefox 3)
Page Index Toggle Pages: 1