← back
Fluid Simulation Sandbox
I’d been reading about fluid simulation methods (SPH, grid-based Euler methods, position-based dynamics) and wanted a small testbed to experiment with them in the browser.
The current version uses a simple particle system with gravity and basic collision response. Particles are rendered with Three.js. The goal was less about photorealism and more about building the scaffolding to try different simulation approaches without starting from scratch each time.
SPH (Smoothed Particle Hydrodynamics) is next — computing pressure and viscosity forces from particle neighbourhoods.