Photorealistic atmosphere effects

I was looking at using some effects from Windward Mark for my flight sim, before I found out that the software was over a thousand dollars. So I set about trying to recreate some of these effects in the BGE. This is the first I have done, the atmosphere shader. I was trying to replicate the effects as can be seen here: http://www.windwardmark.net/images/screenshots/windlight/urban39.jpg
Here is a model of a city without my shader:
http://www.skykool.com/images/city-nofilter.png

And here it is with:

http://www.skykool.com/images/city-filter.png

And here is a simple landscape with it (my grass texture is oversaturated):

http://www.skykool.com/images/landscape-filter.png

Please tell me what you think.
Bear in mind that this is a WIP; anything that doesn’t look right I will gladly change.

UPDATE: Video on YouTube!
http://www.youtube.com/watch?v=er_irypmx_s

Looks a bit like fog with an large range.

how much fps does it eat?

Yeah, looks pretty much exactly like you just set the fog start real close, and gave it a long range.
It’s really hard to judge if the shader part is photo realistic when the textures and lighting of the models aren’t. In the city scene you should yellow out the sun a bit, and fix the weird shading issues on the corners of the buildings.

how much fps does it eat?

This was running at about 290 FPS with shader, and about 300 without.

Yeah, looks pretty much exactly like you just set the fog start real close, and gave it a long range.

It is similar, but for one thing textures are redshifted first, and for another the color is added instead of mixed, to better match reality. It really lets sunlight through better - here is the same scene with fog (same color, distance etc.) instead:

You can see how the fog cuts down on the sunlight.

I would like to try it. The difference is hard to tell based on screenshots, I think. Would you mind posting the script/blend? :slight_smile:

I would like to try it. The difference is hard to tell based on screenshots, I think. Would you mind posting the script/blend?

Sure.
I had to unpack the images as the filesize was too large. You may have to manually reattach them. Does anybody know a good filehosting site?

Attachments

atscat-unpacked.blend (657 KB)



From what I saw in the examples, the shadows are bluer and the light is a slight orange. Just pointing that out.

Thanks, I will try to implement that.

Here is my attempt:
http://www.skykool.com/images/city-newfilter.png

And a .blend:
http://pasteall.org/blend/3021

Looks like ya nailed that. But it still needs shadow. which should be bluer.

I have no idea what happened to the shadows in that last screenshot - sometimes my textures just turn themselves off (does anyone else have this problem?). Here it is, with shadows this time.
http://www.skykool.com/images/city_newfilter_shadows.png