Devlogs
Login

Coding Adventure: Atmosphere

Solar System Project EP 2 03/18/21
Login to Follow

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: https://youtu.be/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 Exploratio