Uploaded December 2024 | Updated September 2026, 3 weeks ago
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!
Support my work (and get early access to new videos and source code) on Patreon or Nebula
* Patreon: patreon.com/SebastianLague
* Nebula: go.nebula.tv/sebastianlague
Source Code:
* GitHub: github.com/SebLague/Fluid-Sim
Check out my other fluid simulation videos:
youtube.com/playlist?list=PLFt_AvWsXl0dJrPelwdVSMVC_MDTYPJWn&si=Z5cOCDSI1aS4fe_C
Credits and References:
* Screen Space Fluid Rendering: developer.download.nvidia.com/presentations/2010/gdc/Direct3D_Effects.pdf
* Foam, Spray and Bubbles: 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: 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
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!
Support my work (and get early access to new videos and source code) on Patreon or Nebula
* Patreon: patreon.com/SebastianLague
* Nebula: go.nebula.tv/sebastianlague
Source Code:
* GitHub: github.com/SebLague/Fluid-Sim
Check out my other fluid simulation videos:
youtube.com/playlist?list=PLFt_AvWsXl0dJrPelwdVSMVC_MDTYPJWn&si=Z5cOCDSI1aS4fe_C
Credits and References:
* Screen Space Fluid Rendering: developer.download.nvidia.com/presentations/2010/gdc/Direct3D_Effects.pdf
* Foam, Spray and Bubbles: 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: 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




![RPG graphics E03: Weight painting [Blender]
In this episode we improve the way the mesh deforms using weight painting.
See Brackeys channel for the programming half of this series: https://www.youtube.com/user/Brackeys
Download starting rigged character here:
https://www.dropbox.com/s/rida4ptr3k1ptvt/Player%20rig.blend.zip?dl=1
Download end-of-video result here:
https://www.dropbox.com/s/zpa8d1z6po8z0uz/Player%20weight.blend.zip?dl=1
RPG gameplay programming playlist:
https://www.youtube.com/playlist?list=PLPV2KyIb3jR4KLGCCAciWQ5qHudKtYeP7
Support the creation of more gamedev tutorials:
https://www.patreon.com/SebastianLague RPG graphics E03: Weight painting [Blender]](https://i.ytimg.com/vi/nK2F-l8Wjbg/mqdefault.jpg)
![[Unity] 2D Curve Editor (E03: closed path and auto-controls)
Source: https://github.com/SebLague/Curve-Editor
Support the creation of more gamedev tutorials:
https://www.patreon.com/SebastianLague
https://www.paypal.me/SebastianLague [Unity] 2D Curve Editor (E03: closed path and auto-controls)](https://i.ytimg.com/vi/nNmFLWup4_k/mqdefault.jpg)

![[Unity] 2D Curve Editor (E02: adding and moving points)
In this episode we begin creating the curve editor.
Source: https://github.com/SebLague/Curve-Editor
Previous episode: https://www.youtube.com/watch?v=RF04Fi9OCPc
Support the creation of more gamedev tutorials:
https://www.patreon.com/SebastianLague
https://www.paypal.me/SebastianLague [Unity] 2D Curve Editor (E02: adding and moving points)](https://i.ytimg.com/vi/n_RHttAaRCk/mqdefault.jpg)


