Jump to content
  • Advertisement
Sign in to follow this  

Distance Haze and cubemaps

This topic is 2940 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

I have recently heard of a technique to have seamless blending between the terrain and the sky box using distance haze and a blurred cubemap of the skybox.

Is there any code or examples I can reference or perhaps someone can give a description of the algorithm? The only explanation I found was in WolfFire's blog on their Overgrowth game. Unfortunately he does not go into great detail as to how he achieved this.

I would be very thankful if anyone can help me or point me in the right direction.

Many many thanks for any help anyone can give me,

Share this post

Link to post
Share on other sites
I looked at the wolfire blog post and I think this it what they did.
  • blurr your skybox very strong radial around the up-axis
  • u can probably use the term distant fog instead of haze
  • then just apply fog to your geometry based on the distance
  • lookup the color of the fog from your blurred cubemap
  • finished

    as they also metioned, u can use the cubemap also for the ambient color in some way. So that the cubemap alone controls the enviroment lighting of your scene

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!