***

Simulating 3D fluids

These are a few screenshots of a basic 3D simulation of fluid flows I've been experimenting with. It is based on Jos Stam's article Real-time Fluid Dynamics for Games but extended to 3D, and using a very simplistic volumetric rendering based on that described in Visual Simulation of Smoke (Fedkiw, Stam and Jensen).

Much thanks to Iain Guilliard for his help, especially in providing a Java implementation of the vorticity confinement algorithm outlined in Visual Simulation in Smoke.

Latest Images

A very simple puff of smoke.

A smoke vent on a 128x128x128 grid. The shading here is still not right (the smoke is too dark).

A 2D slice through the grid, showing the velocity field.