
Fluids simulator with blobby modeling (metaballs) and spring mechanics. Advanced graphics course final project, NCSU.

Overview
I combined blobby modeling (metaballs) with spring-based physics to generate a fluid surface mesh that melds and deforms in real time.

The Mesh Algorithm
Metaballs, also called blobby objects, are implicit isosurfaces that meld together as they approach one another. I polygonize them into a renderable mesh with marching cubes, then apply all sorts of fun rendering and physics techniques.

The Physics
A particle system governed by a network of springs, that push and pull on one another, make a tunable sandbox-style physics playground.

Code
I implemented this from scratch in WebGL 1.0, everything from rendering and shading to the physics and interface. Check out my GitHub repository and run it in your browser!

Sandbox
Play with shading techniques and physics variables to create your own liquids, or crash your browser with particles.