Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

B00Zagl0

Need help with fog.

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

Hi everyone, I need help with fog in openGL. all of the examples I saw about fog is creating the all scene in fog. I want to create fog with some high. I mean if we have a floor and a person standing on it, I want that the fog will only cover his legs. no matter how far the camera is. all the example (also in this site) is fog for all the scene. is there any way to do it ? thanks, B00Zagl0

Share this post


Link to post
Share on other sites
Advertisement
It''s called volumetric fog. Search on gamedev or google for about a million examples.

Share this post


Link to post
Share on other sites
The latest NeHe tutorial on Volumetric Fog is what you want to read. Really cool effect, and it''s what you want

Also, GameTutorials has a volumetric fog tutorial.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!