How to make a FOG like in q3dm4 ?

Hi folx… is there a tuto how to make volumetric fog with ogl ? Like ID did it on q3dm4 ?!

See www.flipcode.com

Also try nehe.gamedev.net for a simple fog example, although some more advanced tuts would be needed.

One trick that may work for you is to turn fog on only for surfaces effected by fog. For example, you could turn fog on for the floor surfaces and the lower wall areas then turn fog off for drawing the rest of the ‘room’. This makes the floor area look foggy. This works fairly well for enclosed areas but not for ‘cloud’ type effects.

can you post some examples or give links?

thanx

bastian