Question about Fog


(DaRkFiRe) #1

I’ve added the fog, and the blocksize according to a different topic, but I’m wonder what the blocksize for Railgun was?


(SCDS_reyalP) #2

From railgun.bsp


"_mingridlight" "56"
"_minvertexlight" "16"
"atmosphere" "T=SNOW,B=5 10,C=0.5,G=0.3 2,BV=20 30,GV=25 40,W=3 5,D=2400"
"_minlight" "22"
"_fog" "textures/mp_railgun/fog"
"farplanedist" "2240"
"mapcoordsmaxs" "9216 -2624"
"mapcoordsmins" "-2432 9024"
"_blocksize" "512"
"classname" "worldspawn"
"gridsize" "192 192 192"
"fogclip" "2240"

In the future, you can look in the .bsp files yourself. Just open it up with any editor that can handle large binary files (wordpad should work, a proper hex editor or programers editor is better) and search for the entity key or classname that you are interested in.


(DaRkFiRe) #3

Thanks for the tip.

But what is the fogclip key used for?


(SCDS_reyalP) #4

It is the distance beyond which thing shouldn’t be drawn. This should be greater than or equal to your fog distance.

You might wonder how this is different from farplanedist. I’m not sure of the details, but there are two different ways that the hiding of things at distance can happen. One is in the vis compile, and the other is at render time. I would expect the fogclip value to be used for the first, and farplanedist to be used for the second. In most situations, you would want them to be equal.


(DaRkFiRe) #5

Thanks for the help :drink: