Distance Fog
by George
Maciver
Having distance fog in your level can
produce some quite startling effects:







First of all, to get the distance fog effect
to work you will need an horizon object in your WAD and
enabled in your script. But it will need to be a TR3 style
horizon and not the more usual TR4 style. It makes no
difference which TR3 horizon as we will be colouring it the
same colour as the fog anyway. Here is what a TR3 horizon
and a TR4 horizon look like:

TR3 horizon
TR4 horizon
To get a TR3 horizon, whack in your TR3 CD and copy any of
the horizons into your WAD using WADmerger.

For our horizon we are going to use this colour of fog:

Open your WAD in Strpix and find the horizon object.

Next, select any of the horizon textures and export it to
your desktop without changing any of its properties.

Open the file in your paint programme of choice. I will use
the simple Windows Paint utility.

Find the colour you wish your fog to be from the palette. In
the following picture note that the colour has a red
value of 0, a green value of 102 and a blue
value of 102.

Colour your horizon texture in the new colour and save it.

Import the texture back into Strpix. Immediately, every
place that texture is used is coloured by the newly imported
file.

Have fun colouring in the entire horizon in your new colour.
The left mouse button adds colour while your right mouse
button rotates the horizon. You can also use the Ctrl and
shift keys with right mouse to move the object in the Render
Window.


Save the file, close Strpix, open your map in the Editor to
have a look at your new horizon. Output the WAD, convert the
level, then open your script text file. Remember the
0,102,102 figures you jotted down in Paint? Okay, you now
need to enable the horizon, enable the fog and enter those
values like this:

Now go into game and test! If you're using a cheap utility
like Paint, you will probably find it's not too precise with
colour matching and your horizon and fog effect may not be
perfect. If the horizon is slightly darker than your fog,
simply reduce the fog to say 0,101,101 in your script and
try again. If it's still slightly out, adjust once more. No
professional programme should give you this problem.

Once you've got your horizon and fog perfectly matched up,
you will have no polygon breakdown whatsoever, not even in
huge outdoor areas. If you're really clever, you can even
put some details into the horizon at a height where the
details will not show through any of your structures.
One problem to watch for is that if you texture door portals
between rooms using toggle opacity, say for a cobwebbed
effect, this will cause your fog effect to break down at the
usual distance and you will get poly breakdown. The fix is
to toggle opacity your door portal again and retexture the
whole portal with normal sky texture from the pallette.
*Note* If you do decide to use
distance fog, please bear in mind that Mac users cannot see
distance fog in their levels. So you will need to supply
separate DAT files with both fog and horizon disabled so
they don't get horrendous polygon breakdown while playing.
Also, Volumetric FX needs to be switched off for this effect
to be visible in game so a note in the readme included with
your download to that effect is necessary.
You can produce some stunning levels using this technique!

Underworld UB3 - The Plain of Jars by Richard Lawther and
Titak

Underworld UB 1 - Recruiting Demon Smalls by Richard
Lawther

Lara at the Movies - Star Gate by Titak

The Imprisoned Spirits - Next Generation by George Maciver
Back to Top