Page 1 of 2

r_wolffog and r_zfar

Posted: Fri Nov 04, 2005 3:36 pm
by Dersaidin
With PB's wolf fog protection removed server admins can now use forcecvar to turn off wolffog for their clients.

But with this is the issue of how far you can see

After some experimenting I've noticed that r_zfar 0 uses a map default r_zfar which changes for each map and looks to be exactly where wolf fog is.

Radar for example:
<a href="http://img84.imageshack.us/my.php?image=radar04cp.jpg" target="_blank"><img src="http://img84.imageshack.us/img84/9841/radar04cp.th.jpg" border="0" alt=""></a>
r_zfar 0
<a href="http://img84.imageshack.us/my.php?image ... 0003tb.jpg" target="_blank"><img src="http://img84.imageshack.us/img84/421/ra ... 3tb.th.jpg" border="0" alt="" ></a>
r_zfar 3000 - you cant see as much of the building
<a href="http://img461.imageshack.us/my.php?imag ... 0806sf.jpg" target="_blank"><img src="http://img461.imageshack.us/img461/5064 ... 6sf.th.jpg" border="0" alt=""></a>
r_zfar 3080

As you can see for Radar, 3080 seems to be the same as map default.
But 3000 looks the same as when wolffog is on, the fog obviously covering the last 80.

On stalingrad:
<a href="http://img252.imageshack.us/my.php?imag ... ad07wq.jpg" target="_blank"><img src="http://img252.imageshack.us/img252/1975 ... 7wq.th.jpg" border="0" alt=""></a>
r_zfar 0
<a href="http://img252.imageshack.us/my.php?imag ... 0004al.jpg" target="_blank"><img src="http://img252.imageshack.us/img252/4892 ... 4al.th.jpg" border="0" alt=""></a>
r_zfar 3000 - you can see the lamp on the bridge now.
<a href="http://img252.imageshack.us/my.php?imag ... 5700rb.jpg" target="_blank"><img src="http://img252.imageshack.us/img252/1235 ... 0rb.th.jpg" border="0" alt=""></a>
r_zfar 2570

For stalingrad 2570 looks right.

Conclusion: leave it locked at 0, or, you could consider standarizing it to 3000.

In Australia, I guess we will go with the settings the Euros pick.

Another point is that r_zfar uses a square box for clipping, like wolffog.
So, at 45 degrees you can see further:
<a href="http://img457.imageshack.us/my.php?image=strait2sw.jpg" target="_blank"><img src="http://img457.imageshack.us/img457/5881 ... 2sw.th.jpg" border="0" alt=""></a>
Strait
<a href="http://img457.imageshack.us/my.php?image=corner9cw.jpg" target="_blank"><img src="http://img457.imageshack.us/img457/6667 ... 9cw.th.jpg" border="0" alt=""></a>
Corner
(look top right)

Posted: Fri Nov 04, 2005 3:56 pm
by Nellie-
Offtopic - what an insanely dark config :x

Posted: Fri Nov 04, 2005 4:07 pm
by ReyalP
as you have discovered, the default value of z-far may be set by the map or sky shader.

@nellie
screenshots usually don't include the effect of hardware gamma.

Posted: Fri Nov 04, 2005 8:06 pm
by Dersaidin
Yeah, I use hardware gammer 1.3, you're seeing software gamma at 1.

Anyway:
command "forcecvar r_wolffog 0"
command "sv_cvar r_zfar EQ 0"

F1 that

Posted: Sat Nov 05, 2005 1:01 am
by Fusen
Nellie- wrote:Offtopic - what an insanely dark config :x
come on darling, you knew that?
________
SWIPER BOYZ

Posted: Sat Nov 05, 2005 3:14 am
by maarten144
Stalingrad is uberpwnge!

Posted: Sat Nov 05, 2005 6:17 pm
by McNite
The farplancedist and fogclip are set in the .map and get compiled into the map.
The fogclip It is the distance beyond which the engine doesnt calculate the environment anymore.
Farplanedist is the value at which the fog becomes opaque, and you set it a bit lower than the fogclip to avoid objects "disappear" all of a sudden. After all, the environment of your map should look realistic.

Can you really change that setting which is compiled with a cvar?

@ Dersaidin: you could test whether you can go beyond the setting of the map in TheRiver II Redux. Its values are farplanedist 4950 and fogclip 5000. So if you can set zfar to 6000 and see more than with 5000 you can override that setting and thus override the compiled settings in the map.

Other question: am I right that it is a serverside setting to disable or keep wolffog, right? Because some maps (TheRiver II Redux for example) look real crap withouth the fog.

And my 2ct on removing wolffog: that s a pretty crappy idea and cvar. Any mapper using fog wants it for a reason, and if its a large map he sure doesnt want his map to look as crappy as they do now without fog being all cut off like this.

Posted: Sat Nov 05, 2005 7:39 pm
by WeblionX
Also, the distance is set to limit how much is drawn for the sake of performance in some maps. (Anyone remember the winter map from RTCW with fog but no distance clip?)

Posted: Sat Nov 05, 2005 9:49 pm
by ReyalP
McNite wrote: Can you really change that setting which is compiled with a cvar?
Yes.

q3map2 does also do distance culling with vis, which under some circumstances might give you HOM if you turn fog off, or simplly see things popping into existance as those clusters come into range.

Posted: Sun Nov 06, 2005 8:26 am
by The Necromancer
Dersaidin wrote:Yeah, I use hardware gammer 1.3, you're seeing software gamma at 1.

Anyway:
command "forcecvar r_wolffog 0"
command "sv_cvar r_zfar EQ 0"

F1 that
F2

Posted: Sun Nov 06, 2005 8:30 am
by McNite
F2 to any messing with fog.

@ maarten: Stalingrad isnt uberpawnage, its in incredibly bad mapped think with regard to mapping technique, which is why you get lowest fps on it.

Posted: Sun Nov 06, 2005 10:56 am
by deej
McNite wrote:Stalingrad isnt uberpawnage, its in incredibly bad mapped think with regard to mapping technique, which is why you get lowest fps on it.
But it looks awesome and when you know how to climb the tower you can set up a very harsh defense :D.

Posted: Sun Nov 06, 2005 11:01 am
by McNite
set up a very harsh defense
sounds like bad gameplay too :P
Actually for competition you want SW maps, and SW is about the attacking team having an advantage due to the layout of the map so they can set a time.
Stalingrad is an example for a huge pub map with an average gameplay and real bad mapping technique (sry but that s my opinion) and the filesize is way to big too.

Posted: Sun Nov 06, 2005 11:42 am
by The Necromancer
sadly there isnt anyone who is rewieving maps..
Well, ppl learned to admire, because they know that it is out of their skills..
I guess that one mapper should write which maps are worth playing..
I agree that stalingrad isnt as good map..

Posted: Sun Nov 06, 2005 12:34 pm
by Deus
isnt that the 20 mb map ?