View Full Version : Viewing Distance in MP
10-22-2003, 05:40 AM
What would be the best way to alter the viewing distance in an MP level.
For instance, In single player on the Hoth mission, the viewing distance was poor.
Is there any way to do this same effect in MP?
10-22-2003, 07:33 AM
That's done via fog.
10-22-2003, 08:38 AM
Ok then, how do I color it?
And where exactly is the surface texture for the fog?
How do I adjust its intensity?
10-22-2003, 09:38 AM
Fogs are shaders, found in textures/fogs. Look in the Shader manual if you want to see how to make fog yourself.
10-22-2003, 12:44 PM
Example fog shader:
fogparms ( 0.4 0.4 0.4 ) 8192
The line surfaceparm fog is what tells the game explicitly that this is a fog.
The line fogparms ( 0.4 0.4 0.4 ) 8192 is what does the real work in the fog shader. The numbers in parentheses are the RGB color values of the fog. The last number is the maximum distance (in game units) that players can see before the fog totally obscures their vision.
You can also map textures onto the surface of the fog to achieve an effect like the surface of water shaders. Look at one of the bespin fogs to see this done.
If you have this fog in your entire level, you can add the key/value distancecull 8192 to your worldspawn and nothing beyond the cutoff distance will be drawn in-game, saving your processor a little. For more on this, see the q3map2 foghull guide (http://www.shaderlab.com/q3map2/manual/foghull_guide.htm).
10-24-2003, 06:15 PM
actually, if you want to change the max veiwing distance because there is hom in the distance, use the worldspawn key distancecull
10-29-2003, 11:56 PM
YOu mean you actually can increase the distance that you see?
11-03-2003, 03:43 PM
yes. if its the default, if you have a distance that is too far, you will get a hom effect, if yu set distancecull farther than that distance, it will be visible
vBulletin®, Copyright ©2000-2014, Jelsoft Enterprises Ltd.