Wolfenstein fog

Hi guys!

Does anyone know how do such a fog as seen in new Wolfenstein?
It doesnt look like Q3 fog and its a lot faster.

You mean the radial fog?

IF you look dead on at something that is foged in Wolfy, and then turn, so it hits the edge of the screen, it becomes unfogged. It’s not as accurate as linear fog.

There is a radial fog example in the Nvidia Effects Browser.

Nutty

So, its just a vertex fog, am I right?

Do you mean the layered fog effect?

I mean volumetric fog on the floor.

A quick way (in vanilla opengl) would be to use 2 user clip planes, render the scene twice, once with the clip planes and fog enabled, the second time with the clip planes normals inverted and fog disabled.
Another way would be clever use of the fog coordinate extension.
Q3 (and wolfenstein) don’t use proper volumetric fog - just a estimate.

On my TNT2 card fog coord doesnt work!

What to do? :->

[This message has been edited by Michalek366 (edited 02-18-2002).]

That’s layered fog. It is a layer of fog which behaves volumetrically.

It was also there in Quake3.

You can do this with texgen with the right radially mapped texture, but AFAIK the trinity engine cuts the model to generate extra vertices and uses per vertex fog color.