Information from http://developer.valvesoftware.com/wiki/Fog_tutorial
Want a creepy look to your map? Want to increase performance by letting the engine not have to render the things far enough away that the fog blocks them?
Fog.
Except, a major problem (And one with the map I recorded that video of) is that the fog only appears "on" props and geometry, so the sky looks non-fogged. If you don't understand, try just putting an env_fog_controller in your normal map and see. It looks ugly. To solve this, you either need to make your own skybox without "$nofog" 1 in the VMT (I will get to this in a later tutorial) or you can use a normal skybox which matches your fog color. sky_day02_10 looks perfect.
Look at this screenshot from the VDC:
Here
That is the skybox with settings used in Half-Life 2.
So, place an env_fogcontroller and open up the properties.
You can name it if you want, if you want to Input it with a command to turn it off or on.
Set Fog Enable to Yes
Set Fog Blend to Yes
Set Primary Fog color to 176 192 202
Set Secondary Fog color to 206 216 222
Set Fog Start to where you want the fog to start, in units from the player
Set Fog End to how far away until the fog is completely opaque
*OPTIONAL*
Set Far Z clip plane to how far away until stuff isn't rendered. Make it farther than the Fog End, so that the player sees no difference.
*OPTIONAL*
These are just one bit of settings, which go with that particular skybox. If you can make your own, you have much more control and could make a greyish, nighttime, evil fog.
There you go.
-Chip
Want a creepy look to your map? Want to increase performance by letting the engine not have to render the things far enough away that the fog blocks them?
Fog.
Except, a major problem (And one with the map I recorded that video of) is that the fog only appears "on" props and geometry, so the sky looks non-fogged. If you don't understand, try just putting an env_fog_controller in your normal map and see. It looks ugly. To solve this, you either need to make your own skybox without "$nofog" 1 in the VMT (I will get to this in a later tutorial) or you can use a normal skybox which matches your fog color. sky_day02_10 looks perfect.
Look at this screenshot from the VDC:
Here
That is the skybox with settings used in Half-Life 2.
So, place an env_fogcontroller and open up the properties.
You can name it if you want, if you want to Input it with a command to turn it off or on.
Set Fog Enable to Yes
Set Fog Blend to Yes
Set Primary Fog color to 176 192 202
Set Secondary Fog color to 206 216 222
Set Fog Start to where you want the fog to start, in units from the player
Set Fog End to how far away until the fog is completely opaque
*OPTIONAL*
Set Far Z clip plane to how far away until stuff isn't rendered. Make it farther than the Fog End, so that the player sees no difference.
*OPTIONAL*
These are just one bit of settings, which go with that particular skybox. If you can make your own, you have much more control and could make a greyish, nighttime, evil fog.
There you go.
-Chip