Until today, the Fluid Simulation has been confined to a tiny box. Let's set it free on a planet, with a little orbiting moon, and see what happens!

Support my work (and get early access to new videos and projects)
Patreon: https://www.patreon.com/SebastianLague
Ko-Fi: https://ko-fi.com/sebastianlague

Source Code:
https://github.com/SebLague/Fluid-Planet

You can find the previous Fluid episodes here:
Simulation: https://youtu.be/rSKMYc1CQHE
Rendering: https://youtu.be/kOkfC5fLfgE

Music:
https://raw.githubusercontent.com/SebLague/Misc-Project-Info/refs/heads/main/Coding-Adventures/FluidPlanet.txt

Chapters:
00:00 Intro
00:25 Playing with Gravity
03:11 Adding Simple Collisions
04:21 Implementing Orbits
05:36 Visualizing Tidal Forces
07:46 Fluid Shell
08:50 Tide Watching
11:54 Implementing the Earth
17:25 Oceans on Earth
20:26 A Terraforming Experiment
23:48 3-Body System