glFog() ??

Started by
1 comment, last by Max_Payne 22 years, 3 months ago
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

Looking for a serious game project?
www.xgameproject.com
Advertisement
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
A man walks into a bar.....ouch!?! Ya get it, do ya huh huh well....awww I give up.
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 ]
- -- ---[XaOs]--- -- -[ Project fy ||| CyberTux ]

This topic is closed to new replies.

Advertisement