Atmospheric Scattering – Blender Game Engine

Martinsh explains:

Hello, I haven`t posted anything for too long time
So, here I present you a shader i`ve recently been busy with.

It is based on the chapter “Accurate Atmospheric Scattering” of the “GPU Gems 2” I found here: http://http.developer.nvidia.com/GPU…chapter16.html

Scene contains 4 spheres: 2 for ground & 2 for atmosphere, as there are 4 shaders (Ground from Space/Atmopshere & Skies from Space/Atmosphere).

Feel free to use this in your own projects, but the setup may be a headache.
Moving, scaling etc. operations of the spheres will cause strangeness

Yet to do:
• easier setup
• skydome only (if you dont need a view from space)

• cloud coverage
• normal-mapped lighting for ground
• ocean material

Earth

You can download the file and see it for yourself from this link. Controls listed below:

WASD – move camera
Mouse movement – mouselook
Left mouse button&mouse movement – grab&move sun
Mousewheel up/down – scattering exposure
Up/Down – scattering samples

Youtube video – http://www.youtube.com/watch?v=3dxDVzby_XU

Thread on Blenderartitsts.org – http://blenderartists.org/forum/showthread.php?t=170903

http://blenderartists.org/forum/showthread.php?t=170903
Advertisement