Realistic Atmosphere In Cycles

shading
(Lasse Foster) #1

Download the shader on Gumroad for free: https://gumroad.com/l/MwdT

I spent my last 3 days developing a relatively accurate and good looking atmospheric volume based cycles shader. It is universally adaptable to every combination of planet and atmosphere size and i tried to get it as close to reality as possible while still keeping an artistic value to it.
Here is a link to my YouTube Video about it, with download link to the Blendfile: https://www.youtube.com/watch?v=K5GtffIIJR8

As you can see from the photos it is pretty accurate and has a natural coloration in the sunlight with sunsets and everything!

Shader V1 : https://mega.nz/#!6pghCSJT!DQ3nhpc-IT6qceqsSeTvTSVnbIDESM96mVng7O43wY0
Shader V2 : https://mega.nz/#!S9ZHQIxY!O2ckAKYdTwGXz_mVO9ovsiDikkT0_ge7KkFid67HsO0
Shader V3 : https://mega.nz/#!3ogVVaZS!_30RSiVuhE0B1t5Brr4RZzfK-oT9S9I8zDBMKBDZqow

28 Likes
(Avery) #2

That’s really nice, Great job! :slightly_smiling_face:

1 Like
(ManuelGrad) #3

Wow. Awesome job! Very accurate!

(Lasse Foster) #4

I made an update to the shader node. It now supports mathematically accurate exponetial growth in density with the option to switch to the old stylized and new accurate solution with a slider. I also optimized the volume shader itself to have a little bit of anisotropy in order to get a more intens color shift as it is quite a lot more dominant on real photos than i imagined.

NodePreview

The lower two sliders now contribute a lot to the look as seen in the photos bellow.


Both sliders at 0.


First slider at 0 second at 1.


First slider at 1 second at 0.


Both sliders at 1.

Note that the looks are not representativ of what they can look like its just about the fallof of the density. I didn’t change the multiplication at all.

Download link V2: https://mega.nz/#!S9ZHQIxY!O2ckAKYdTwGXz_mVO9ovsiDikkT0_ge7KkFid67HsO0

4 Likes
(Lasse Foster) #5

Update 2.1!!!
The Vector Transform Node didn’t work properly so i had to exchange it. Here is the corrected version:
https://mega.nz/#!S9ZHQIxY!O2ckAKYdTwGXz_mVO9ovsiDikkT0_ge7KkFid67HsO0

4 Likes
(Lasse Foster) #6

Update V3:

Atmo Changes:
I reworked most of the math and changed how the slider for fallof behaved with the accurate fallof. It is again much more precise.
From now on you don’t have to apply the scale anymore, as it is a parameter you can simply change in the NodeValues.

Earth And Cloud Changes:
I added support for quadrant based textures from the NASA website both for color- and nonColorData. They are called quadrantCombiner and you just have to go through the nodes and load all “1-Textures” (A1, B1, C1, D1) into the first four nodes and all “2-Textures” (A2, B2, C2, D2) into the last four textureNodes. The combiner will output 1 big picture.
For the clouds there is a similar node called the CloudHemiCombiner. Same principle but only 2 textures.
The Clouds are now pseudo volumetric with an array modifier giving them thickness wich works great as you can see on the pictures.

Both pictures with highres displacement and clouds! (combiners)

The stepping in the atmo comes from to few VolumeSteps and subdivisions on both the earth and the atmo! In the future you will need to set it to at least 256 by 128 for convincing results. as the atmosphere is so precise now that it makes a big difference how round the sphere really is!

Download: https://mega.nz/#!3ogVVaZS!_30RSiVuhE0B1t5Brr4RZzfK-oT9S9I8zDBMKBDZqow

7 Likes
(Nitram_2000) #7

This is stunning stuff :+1:t2:

(Lasse Foster) #8

Thanks! :smiley:

(Nitram_2000) #9

I want to make the BBC Planet Earth 2 intro now :smiley:

(Emrebel) #10

Gorgeous work!!
It feels alive…

1 Like
(Lasse Foster) #11

I made a 4k render showing what is possible with the shaders from V3. It took about 3 hours to render so i gues no motion pictures with this shader… :slight_smile:

As you can see the clouds are very nice using my pseudo volumetric approach! Even though I think I could lift them of the planet a bit more and give them more depth!

5 Likes
Challenge #820 (08/03/19) Entries CLOSED
(firebert85) #12

When I opened the blender file, this is the default cycles render i get right out the box. Lots of pink, thoughts about how this happened?

Blender 2.8 beta April 07 Build

(Akikun) #13

Missing textures maybe ?

(firebert85) #14

Maybe? was anyone else having similar issues or did i not download all the assets?

(0ptikz) #15

You need to download the highres textures from the Blue Marble page:

https://visibleearth.nasa.gov/view.php?id=73934

https://visibleearth.nasa.gov/view.php?id=74218

1 Like
(lacilaci86) #16

looks fantastic!

1 Like
(Lasse Foster) #17

Yeah optikz is right! I accidentally replaced the standard earth texture with the quadrant combiner! Just download the right textures for your needs (quadrants for the quadrant combiner and standard single texture if you dont want to use those! Same for bump and clouds (hemicombiner for clouds)! Hope it helps!

1 Like
(Adrian) #18

I wouldn´t recommend it. Volumetrics render for ages and don´t work in this context in Evee. Trust me I tried to do an Animation with a Volumetric Atmo (not as good as this one).
It rendered for 4 and a half days straight, using 2 medium spec PCs on GPU and CPU.:joy:

But this shader really is amazing.

(Nitram_2000) #19

Haha. Yeah, I read his render times above and thought twice about it :smile:

(Adrian) #20

Hey,
as a pro, what do you think about this one?