Archived

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

Max_Payne

glFog() ??

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
Hi!!

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! =)

http://www.cfxweb.net/~projectfy

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