I need an idea for rendering fog, for example, like in greed corp:
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
Idea for a Fog "Layer"
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.
Looks like 2 quads at different heights and different alpha values. Just update the texcoords of the quads to have the clouds scroll.
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* ;)
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.
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
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
Popular Topics
Advertisement