Stable Fluids in 2D

Raul Escobar

Presentation + Demo

The video above is really about the high level ideas required to implement stable fluids, but the hard part is in the details. If you would like to implement this yourself, I have cited below two papers that go really deep into the implementation details.

To render the fluid, I mapped the density onto a texture. The texture was then mapped onto a 1x1 quad and translated to the origin. I placed the camera facing the quad texture with orthographic view matrix.

Demo only

Libraries used:
Sources: