← All resources

Gentle Introduction to Realtime Fluid Simulation for Programmers and Technical Artists (Shahriar Shahrabi)

Auto-discovered

Blog Beginner

Shahriar Shahrabi

Visit resource ↗

Description

Shahriar Shahrabi's October 2021 Medium tutorial explains real-time grid fluid simulation for programmers and technical artists with geometric intuition rather than dense Navier-Stokes notation. Unity compute-shader sample code on GitHub walks through the same pipeline, though the author treats the grid math as engine agnostic.

The article builds diffusion, advection, and user input on a 2D grid, then shows compressibility flaws, GPU scatter hazards, and timestep blow-ups before adding projection, pressure iteration, and gather-style advection, with brief dynamic-boundary notes.

Suited to beginners who can follow field updates; Unity mainly helps when reading the shaders.

Free on Medium with figures and stable-fluids citations; the repo documents FluidSimulator setup and kernel dispatch.

Often recommended as a readable bridge toward classic GPU fluid references.