» Sand particles falling and accumulating
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Sand particles falling and accumulating

question open project/idea buffer Physics texture

pdubost 27/07/12 - 08:37

Hi evvvveryone,

I am trying to do something similar to this in vvvv.
http://thisissand.com/

My idea first was to use a combination of :

  • a dynamic particle/physic system (Box2d or others)
  • a buffered texture

The idea would be

  • to Destroy the particle from the CPU particle Spread as soon as it doesn't move.
  • The graphic of the particle would be added to a Buffered texture just before being deleted.

That way, you can have a trace of the stacked particles without having to consider them in the CPU anymore..
____
Does that make sense ?

If you have any idea or hints, please let me know.
I'll post some tests asap :)

3 replies 0 new

link | Flag this reply as a solution. tonfilm (devvvv) 28/07/2012 - 00:59

that sounds just about right, but how do the new particles collide with the ones already there if the physics engine does not know them anymore? you should keep the top layer somehow...

link | Flag this reply as a solution. milo (diplomate) 28/07/2012 - 13:01

he phillipe,

i guess the demo is based on a cellular automata. i found a sourcecode for you.
i think you can do this all inside a plugin which just outputs a texture...

http://www.openprocessing.org/sketch/6622

would be nice to see your progress...best,

m.

link | Flag this reply as a solution. milo (diplomate) 28/07/2012 - 13:08

and some more link i found:
http://www.eeweb.com/project/skyler_schneider/falling-sand-game
http://w-shadow.com/blog/2009/09/29/falling-sand-style-water-simulation/
http://chir.ag/stuff/sand/

i think it could also be done with a kind of texture feedback loops.

anonymous user login

Shoutbox

~1d ago

mrboni: alt+right click ?

~2d ago

guest: ALT+RightClick... Yesss!

~2d ago

u7angel: unity = 2 million users , not bad

~2d ago

u7angel: @m4d, yeah...i'm not into unity but from what i've seen, they've done a good job