After seeing the impressive No man’s sky trailer, I noticed that their objects in space far from the camera are colored by the stars light (As seen in this picture). Kinda like when you look at mountains in the distant and they appear blue-ish. I’m aware that in space, this should not happen due to the lack of atmosphere… but still, I tried to reproduce this effect but was stuck, because I ran out of ideas. I get that the sun might just be a flare with a bigger flare blended on top to simulate the diffusing light.
But what I don’t get is the coloring of the asteroids.
They are colored when far away but revert to normal when seen close up. Unfortunately I am not quite sure how to make this effect and was wondering if one of you guys had any ideas on this.
Thanks in advance!
1 Answer
1This is called “fog”, and is commonplace in 3D games. It’s nothing technically special, but applied well it can add to the feeling of depth.
See http://docs.unity3d.com/Documentation/Components/class-RenderSettings.html
Thanks a lot, I didn't think it was something as simple as fog. I was expecting something like custom rayleigh scattering or something on those lines. Anyway, thanks to your advice, I found what I wanted [here][1]. [1]: http://ephenationopengl.blogspot.de/2012/01/fog-sphere-implemented-in-shader.html
– FreakForFreedomYou can find something along these lines for unity [here][1]. [1]: http://www.google.com.br/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB4QFjAA&url=http%3A%2F%2Fforum.unity3d.com%2Fthreads%2Fextended-global-fog-unity5.313358%2F&ei=l882VarvEcGvsAXcqICICw&usg=AFQjCNGzTuSVJrtS0rFW1FFWWUj9dSu-bg&sig2=h94nSdwMxNWKXzFNeGu_Rg&bvm=bv.91071109,d.b2w
– odivalThanks a lot, I found the same thread a few weeks ago.
– FreakForFreedom