video thumbnail 22:00
Coding Adventure: Atmosphere

2020-08-22

[public] 663K views, 60.3K likes, 144 dislikes audio only

channel thumbSebastian Lague

The planets in my solar system project are looking a bit hostile and uninviting, so in this video I'll be attempting to add some cozy atmospheres around them.

Watch the previous solar system video: here: /youtube/video/lctXaT9pxA0

Some notes:

• I made a little build where you can play with the atmosphere settings yourself, which you can find over here if you're interested: https://sebastian.itch.io/atmosphere-experiment

• A number of knowledgeable people have pointed out in the comments that reality is not nearly as simple as my little diagram around the 4 and a half minute mark, and that light does not literally wiggle up and down like a wave, so please note that the diagram is incorrect!

• This project was inspired by the game Outer Wilds, which I highly recommend playing!

Project Files:

The project is available over here: https://github.com/SebLague/Solar-System

If you'd like to get early access to future project files (and support the channel!) you can find my Patreon page here: https://www.patreon.com/SebastianLague

Resources:

https://developer.nvidia.com/gpugems/gpugems2/part-ii-shading-lighting-and-shadows/chapter-16-accurate-atmospheric-scattering

http://nishitalab.org/user/nis/cdrom/sig93_nis.pdf

https://physics.stackexchange.com/questions/28895/why-is-the-sky-not-purple

https://en.wikipedia.org/wiki/Scattering

Music:

"Brief Respite" by Antti Luode

"When Rain Comes" by Tide Electric

"Door to Door Disco" by Bright Seed

"Reflections of Space and Time" by AEROPLANES

"In the Atmosphere" by Bad Snacks

"Reflections" by MK2

"Nidra in the Sky with Ayla" by Jesse Gallagher

"Far Away" by Antti Luode

"Frontier" by Shimmer

Sections:

00:00 Intro

00:32 Setup

02:46 Resources

03:25 Light Scattering

06:15 Coding the Shader

11:55 Initial Results

13:10 Adding Colour

15:20 Colourful Results

16:40 Optimisation

17:39 Stars

18:50 Exploration


Intro
/youtube/video/DxfEbulyFcY?t=0
Setup
/youtube/video/DxfEbulyFcY?t=32
Resources
/youtube/video/DxfEbulyFcY?t=166
Light Scattering
/youtube/video/DxfEbulyFcY?t=205
Coding the Shader
/youtube/video/DxfEbulyFcY?t=375
Initial Results
/youtube/video/DxfEbulyFcY?t=715
Adding Colour
/youtube/video/DxfEbulyFcY?t=790
Colourful Results
/youtube/video/DxfEbulyFcY?t=920
Optimisation
/youtube/video/DxfEbulyFcY?t=1000
Stars
/youtube/video/DxfEbulyFcY?t=1059
Exploration
/youtube/video/DxfEbulyFcY?t=1130
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
Coding Adventures by Sebastian Lague
/youtube/video/vTMEdHcKgM4
Support on Patreon patreon.com
https://www.patreon.com/SebastianLague/
Coding Adventure: Solar System 692,927 views
/youtube/video/7axImc1sxa0