Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Viewing Distance in MP

Page: 1 of 1
 AHiryu
10-22-2003, 5:40 AM
#1
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?
 GothiX
10-22-2003, 7:33 AM
#2
That's done via fog.
 AHiryu
10-22-2003, 8:38 AM
#3
Ok then, how do I color it?

And where exactly is the surface texture for the fog?

How do I adjust its intensity?
 GothiX
10-22-2003, 9:38 AM
#4
Fogs are shaders, found in textures/fogs. Look in the Shader manual if you want to see how to make fog yourself.
 wedge2211
10-22-2003, 12:44 PM
#5
Example fog shader:

textures/skies/examplefog
{
qer_editorimage textures/fogs/fog1.tga

surfaceparm nodraw
surfaceparm nonsolid
surfaceparm trans
surfaceparm fog

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).
 SD_Radical_Ed
10-24-2003, 6:15 PM
#6
actually, if you want to change the max veiwing distance because there is hom in the distance, use the worldspawn key distancecull
 MasterSidious
10-29-2003, 11:56 PM
#7
YOu mean you actually can increase the distance that you see?
 SD_Radical_Ed
11-03-2003, 3:43 PM
#8
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
Page: 1 of 1