[sharing] simple jit.gl.pix-based fluid

yaniki's icon

A jit.gl.pix implementation of the classic, simple fluid simulation.

It's based on the simple equotation: h(x, y, t+1) = damping * (1/2 * (h(x+1, y, t) + h(x-1, y, t) + h(x, y+1, t) + h(x, y-1, t)) - h(x, y, t-1)), the same as utilised in a part of the "pool 3d nurbs example" from standard Jitter examples and the xray.jit.water external (from the XRAY package).

Max Patch
Copy patch and select New From Clipboard in Max.

2K's icon

thanks for this patch! I made a "multitouch" version of it. Check it out!

simple_fluid_fingers.zip
zip 20.00 KB

yaniki's icon

Thanks. Finally, someone became interested ...

Mathieu Chamagne's icon

Thanks very much for sharing these amaizing patches , beautiful and very instructive :-)