Jump to content
  • Advertisement
Sign in to follow this  
MystikIce

Using Fog With Desired HEIGHT

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

Could anyone venture a hint as to how one could use fog with a random height. For example I have my camera at position 0, 5, 0. How could I make the fog height 5 to seem as though it is at eye level? Thanx in advance!

Share this post


Link to post
Share on other sites
Advertisement
you can also make a volume (a cube for example) and then use a 3D Texture. then make the volume transpert etc..etc..

Share this post


Link to post
Share on other sites
You can check out this demo at delphi3d, it explains the concept of simple (yet nice looking) layered height fog (scroll down the list, it's heightfog.zip)

Quote:

you can also make a volume (a cube for example) and then use a 3D Texture. then make the volume transpert etc..etc..

Hmm, it's not that easy. Keep in mind that you need some kind of volumetric visualization technique to actually see the 3D texture: slicing or raytracing comes to mind. Depending on the size of the volume, this can be expensive. But this technique can look really good.

Share this post


Link to post
Share on other sites
ive done volumetric fog before with a 2d projected texture
http://uk.geocities.com/sloppyturds/gotterdammerung.html

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!