2 ms·
Looks like the algorithm is based on this: http://en.wikipedia.org/wiki/Smoothed-particle_hydrodynamics http://en.wikipedia.org/wiki/Smoothed-particle_hydrodyn
by userbinator 12y ago
Looks like the algorithm is based on this:
http://en.wikipedia.org/wiki/Smoothed-particle_hydrodynamics http://en.wikipedia.org/wiki/Smoothed-particle_hydrodynamics
The theory behind it is rather more complex than the equations that implement it - which is why it can be done in such a small amount of code.
It's a similar idea to those tiny raytracers and the basis of many demo effects: a relatively simple equation, iterated many times, can produce a complex and even realistic scene.