Skip to content

Instantly share code, notes, and snippets.

View tmsampson's full-sized avatar
🕹️
Pushing Pixels

Thomas Sampson tmsampson

🕹️
Pushing Pixels
View GitHub Profile
@vassvik
vassvik / Simulation_Projection.md
Last active March 27, 2024 09:31
Realtime Fluid Simulation: Projection

Realtime Fluid Simulation: Projection

The core of most real-time fluid simulators, like the one in EmberGen, are based on the "Stable Fluids" algorithm by Jos Stam, which to my knowledge was first presented at SIGGRAPH '99. This is a post about one part of this algorithm that's often underestimated: Projection

MG4_F32.mp4

Stable Fluids

The Stable Fluids algorithm solves a subset of the famous "Navier Stokes equations", which describe how fluids interact and move. In particular, it typically solves what's called the "incompressible Euler equations", where viscous forces are often ignored.