Idea for a Fog "Layer"

Started by
5 comments, last by Lunatix 11 years, 9 months ago
I need an idea for rendering fog, for example, like in greed corp:

pic_1279561239.jpg

What did you think what greed corp is doing for this? Simple sprites with cloudy textures, floating at a definied level over the map? Or is there a shader solution?


Regards,
Lunatix
Advertisement

What did you think what greed corp is doing for this? Simple sprites with cloudy textures, floating at a definied level over the map? Or is there a shader solution?


It should be easy in the fragment shader. Blending with a bitmap of clouds, depending on distance.
[size=2]Current project: Ephenation.
[size=2]Sharing OpenGL experiences: http://ephenationopengl.blogspot.com/
Looks like 2 quads at different heights and different alpha values. Just update the texcoords of the quads to have the clouds scroll.

NBA2K, Madden, Maneater, Killing Floor, Sims http://www.pawlowskipinball.com/pinballeternal

Personally, I would do it the easy way: Layers of transparent textured polygons. No need to get messy. Of course, I would have to see the result before I commit, and I'd likely try different ideas, but only based on what produces good results, because I can't imagine it'll be heavy to render, so it shouldn't be a performance issue.
Okay, thank you guys for your approaches :)
I think, that i will use the two quads with cloud textures... i thought it could be something more *magical* ;)
If you look (not even hard) at the ground poles, you will eventually see a whole fog plane intersecting each pole at the same height. There are a few more if you do down the pole you can clearly see the cuts.

NBA2K, Madden, Maneater, Killing Floor, Sims http://www.pawlowskipinball.com/pinballeternal

You're right, i see it too =D

Maybe something interesting, here's an article about animated clouds via perlin noise.. sounds interresting o_o

http://freespace.virgin.net/hugo.elias/models/m_clouds.htm

This topic is closed to new replies.

Advertisement