Coding Adventure: Simulating Smoke @SebastianLague
Coding Adventure: Simulating Smoke  @SebastianLague
Uploaded October 2025 | Updated September 2026, 2 weeks ago
My attempt at coding a grid-based fluid simulation to try and achieve some smoky effects!

Support my work (and get early access to new videos and source code) on Patreon: patreon.com/SebastianLague

Source Code:
github.com/SebLague/Smoke-Simulation

Resources and References:
Fluid notes: cs.ubc.ca/~rbridson/fluidsimulation/fluids_notes.pdf
Ten-minute physics: youtube.com/watch?v=iKAVRgIrUOU
My other fluid videos: youtube.com/playlist?list=PLFt_AvWsXl0dJrPelwdVSMVC_MDTYPJWn&si=Z5cOCDSI1aS4fe_C
Sound wave simulation: youtube.com/watch?v=iA6wRgwl7k0
Music: raw.githubusercontent.com/SebLague/Misc-Project-Info/refs/heads/main/Coding-Adventures/Smoke

Chapters
00:00 Intro
00:50 Navier-Stokes Equations
02:00 Divergence
05:09 Solving for Pressure
08:26 Gauss-Seidel Iteration
10:36 Solid Cells
12:26 Velocity Interpolation
15:15 Advection (with derivatives)
18:37 Semi-Lagrangian Advection
22:12 Testing
23:43 Successive Over-Relaxation
25:16 Visualizing Speed
26:32 Smoke Map
28:14 Parallel Pressure Solving
31:13 Vortex Shedding
35:48 A Few Little Experiments
37:55 Temperature
39:17 Final Smoke Experiments
40:38 Outro
Coding Adventure: Simulating SmokeProcedural Landmass Generation (E09: LOD switching)[Unity] Procedural Planets (E01 the sphere)Exploring How Computers WorkCoding Adventure: Ray TracingProcedural Landmass Generation (E04: Colours)[Unity] 2D Curve Editor (E01: introduction and concepts)Coding Adventure: Rendering TextUnity Shape Editor Tool (3/4)[Unity 2017] Placing Objects with PhysicsUnity Create a Game Series (Introduction)A* Pathfinding (E10: threading)
Sebastian Lague |

Coding Adventure: Simulating Smoke

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER