Jump to content
  • Advertisement


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


glFog() ??

This topic is 6028 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, i''ve seen this function in an OpenGL reference page, i was wondering, is it an easy way of having fog in OpenGL? How does it work? Anybody got some pseudo code? I was also wondering, are alot of people using it? Thanks

Share this post

Link to post
Share on other sites
This is the easiest question ever NeHe has a tutorial on Fog. Isn't that nice! Lesson 16 I think. Oh and yes it is very quick and easy to put in (about 25 lines of code) but it's not Volumetric Fog (all NeHe's does is make fog appear in the distance) so you can't do any of the neat foggy floors like in Quake III or Tribes 2. If you want to do that it's alot of work I haven't found any good tutorials on that however.

A man walks into a bar.....ouch!?! Ya get it, do ya huh huh well....awww I give up.

Edited by - ARID on January 13, 2002 7:44:47 PM

Share this post

Link to post
Share on other sites

For a little thingie on volumetric fog you can check our site....
Not much of a tutorial..but you get some source to play with! =)


Hope this can help you out a little on the little more advanced fog effect! =)

Take Care!

- -- ---[XaOs]--- -- -

[ project fy ]

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.

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!