Skip to content
0:00 / 0:00

#unity#volumetricclouds#raymarching

Coding Adventure: Clouds

Sebastian Lague

1.4M subscribers • 17 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • A classic. People kept recommending it from 2020 to 2026.
  • Presented by Sebastian Lague
  • Linked in the descriptionSebLague/Cloudsbrihernandez/MouseFlight
  • May be out of date. Uploaded 7 years ago, in an area where tools change fast.

Intermediate. Assumes working knowledge.

1.3M views7 years ago2 recommendations

Graphics and audioGame developmentRenderingGPUs, shaders and CUDAGame programming

Sebastian Lague explains how he programmed real-time volumetric clouds in Unity using ray marching and HLSL.

Clouds are lovely and fluffy and rather difficult to make. In this video I attempt to create clouds from code in the Unity game engine. Project source (Unity, HLSL, C#) is now out of early access: github.com/SebLague/Clouds If you'd like to support the creation of more videos like this, please consider becoming a patron: patreon.com/SebastianLague Learning Resources: killzone.dl.playstation.net/killzone/horizonzerodawn/present… diva-portal.org/smash/get/diva2:1223894/FULLTEXT01.pdf patapom.com/topics/Revision2013/Revision%202013%20-%20Real-t… gamedev.net/forums/topic/680832-horizonzero-dawn-cloud-syste… Assets: Mouse flight: github.com/brihernandez/MouseFlight Plane model: turbosquid.com/FullPreview/Index.cfm/ID/1041070 Music: "Hypnothis" and "The Show Must Be Go" by Kevin MacLeod (incompetech.com) Licensed under Creative Commons: By Attribution 3.0 License creativecommons.org/licenses/by/3.0/ Notes: I made a mistake at in saying that the closest point is guaranteed to be inside the adjacent cells, it’s possible to get arrangements where the nearest point is two cells away orthogonally. This doesn’t seem to occur much as I never noticed any discontinuities in the result, but worth knowing. Chapters: Intro Worley Noise Image Effects Raytracing... a Box! Raymarching Cloud-ish Shapes Light Scattering Theory Mishap Montage Final Code Cloud Editor Final Demo: Flying Through the Clouds

Why it's here

2 people recommend this

What people say. Highly recommended as an engaging overview of volumetric rendering and cloud simulation.

u/MrGosuoin r/GraphicsProgramming • Recommends

On “Need help with Volume Rendering.”

I really like the Coding Adventure videos by Sebastian Lague. They aren't exactly guides or tutorials, but they give a cool overview of what is possible and how he programmed it Ray marching Volumetric clouds Hope that helps

u/Prestigious-Aide-782in r/GraphicsProgramming • Recommends

On “WIP Real-time volumetric clouds in OpenGL”

These are some great resources (especially for a beginner): \- "Coding Adventure: Clouds" by SebastianLague [video \- "How Big Budget AAA Games Render Clouds" by SimonDev [video Bit more technical: \- Frostbite Paper https://media.contentapi.ea.com/content/dam/eacom/frostbite/files/s2016-pbs-frostbite-sky-clouds-new.pdf \- Horizon Zero Dawn Paper https://advances.realtimerendering.com/s2015/The%20Real-time%20Volumetric%20Cloudscapes%20of%20Horizon%20-%20Zero%20Dawn%20-%20ARTR.pdf