video thumbnail 58:41
Coding Adventure: Rendering Fluids

2024-12-06

[public] 122K views, 34.8K likes, dislikes audio only

4K

We've succeeded in the past to make a bunch of little balls behave like a fluid, but can we now make them look like a fluid too? In this video we'll explore a few different techniques, and also attempt a simple simulation of foam and spray to liven things up!

Source Code

https://github.com/SebLague/Fluid-Sim

Support (and get early access to new videos and projects)

Patreon: https://www.patreon.com/SebastianLague

Ko-Fi: https://ko-fi.com/sebastianlague

Fluid Simulation Video

/youtube/video/rSKMYc1CQHE

Resources

Screen Space Fluid Rendering: https://developer.download.nvidia.com/presentations/2010/gdc/Direct3D_Effects.pdf

Foam, Spray and Bubbles: https://cg.informatik.uni-freiburg.de/publications/2012_CGI_sprayFoamBubbles.pdf

Reflections and Refractions: https://graphics.stanford.edu/courses/cs148-10-summer/docs/2006--degreve--reflection_refraction.pdf

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

Chapters:

0:00 Intro

0:27 Marching Cubes

05:58 Raymarching

10:40 Refract, Reflect, Fresnel

13:35 More Raymarching

18:28 A Simple Environment

20:40 Testing the Raymarched Fluid

25:03 Screen Space Technique: Depth Map

28:35 Simple Smoothing

33:42 Surface Smoothing

36:44 Rendering the Fluid

42:02 Spray, Foam, and Bubbles

55:12 Testing the Screen Space Fluid

57:22 Outro


Refract, Reflect, Fresnel
/youtube/video/kOkfC5fLfgE?t=640
A Simple Environment
/youtube/video/kOkfC5fLfgE?t=1108
Testing the Raymarched Fluid
/youtube/video/kOkfC5fLfgE?t=1240
Screen Space Technique: Depth Map
/youtube/video/kOkfC5fLfgE?t=1503
Spray, Foam, and Bubbles
/youtube/video/kOkfC5fLfgE?t=2522
Testing the Screen Space Fluid
/youtube/video/kOkfC5fLfgE?t=3312
Sebastian Lague Hello, on this channel I explore how to create stuff out of code. I hope you find some of it interesting!
/youtube/channel/UCmtyQOKKmrMVaKuRXz02jbQ
Support on Patreon patreon.com
https://www.patreon.com/SebastianLague/
Coding Adventure: Simulating Fluids 1,975,575 views
/youtube/video/rSKMYc1CQHE
Coding Adventure: Atmosphere 1,164,265 views
/youtube/video/DxfEbulyFcY