Jump to content
  • Advertisement
Sign in to follow this  
ade-the-heat

OpenGL skybox and fog looks awful

This topic is 5023 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
I think the usual approach is to turn fog off when rendering your skybox, then turn it on for everything else.

Share this post


Link to post
Share on other sites
It also helps if the portion of your skybox that meets the fog is of a similar color so the horizon seems to dissapear into the fog.

Share this post


Link to post
Share on other sites
Using OpenGl fog for the skybox doesn't make sense, because the distance between you and the horizon is the same as to the top of the sky... as you will probably want only the horizon fogged, it would be a good idea to blend a gradient texture over it (only the horizon)

I can't add much more since that is one of my TODOs, I haven't actualy done it yet :)

Share this post


Link to post
Share on other sites
Turn off fogging when you render your sky box. Since the visuals on the box are intended to represent a great distance, any fogging effect could be assumed to be at an unchanging saturated level. Therefore, it could easily be baked into the texture of the sky box as a preprocess.

-bodisiw

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!