Hey @ all,
today I tried to get some fog working in TheRiver, because the distances players can see in this open terrain map are fare too long and distract from gameplay or even annoy.
These are my fog-settings:
Worldspawn: farplanedist 4900, fogclip 4700
shader for my fog:
textures/river2nd_t/rv2nd_fog_02
{
qer_editorimage textures/river2nd_t/rv2nd_fog_02.jpg
qer_trans 0.9 //0.4
surfaceparm fog
surfaceparm nodraw
surfaceparm nolightmap
surfaceparm nonsolid
surfaceparm trans
fogparms ( 0.72 0.76 0.78 ) 4700
}
The fog as a fog works fine. (Anybody any idea how to make it very light so you don’t get the fog in the buildings? I know you can thin the fog by increasing the fogparms and distances.)
What doesn’t work so fine is fog and water together:
For this, some pics:
First 2 pics both have the same water-shader with nofog in the shader and fog on in the blending parts (see below at siwa_water2 shader).


However when I disable the nofog to get some fogclipping this happens: there is a “fogline” on the water quite some units in front of the fogclipping, and most annoyingly the surface of the water gets transparent (which was disabled in the water-shader); furthermore you get the light grey fog in the water which sux too

To prove its not my water-shader that s the problem: this is siwa_water2 in the same map, same fog-settings:

This is the siwa_water2 shader:
textures/liquids_sd/siwa_water_2
{
qer_editorimage textures/liquids_sd/siwa_water.tga
qer_trans .5
q3map_globaltexture
cull disable
nocompress
nofog <<< when you disable this one you get something like the 3rd pic
surfaceparm nomarks
surfaceparm nonsolid
surfaceparm trans
surfaceparm water
waterfogvars ( 0.11 0.13 0.15 ) 0.2
nopicmip
{
map textures/liquids_sd/siwa_water.tga
blendFunc blend
alphaFunc GE128
rgbgen identity
tcmod scale 0.5 0.5
tcmod scroll -.02 .001
fog on <<< when nofog is disabled u can let these or disable them too, its no difference (pic 3 in every case)
}
{
map textures/liquids_sd/seawall_ripple1.tga
blendFunc GL_ONE GL_ONE
rgbGen wave sin 0.3 0.02 0 0.25
tcmod scale 0.01 0.01
tcmod scroll -.001 -.0002
fog on
}
{
map textures/liquids_sd/seawall_ripple1.tga
blendFunc GL_ONE GL_ONE
rgbGen wave sin 0.1 0.03 0 0.4
tcmod scale 1 1
tcmod scroll -.005 -.001
fog on
}
{
map textures/liquids_sd/siwa_shimshim1.tga
blendFunc GL_ONE GL_ONE
rgbGen wave sin 0.4 0.02 0 0.3
tcmod transform 0 1.5 1 1.5 2 1
tcmod scroll .005 -.001
fog on
}
}
So wtf am I doing wrong? Anybody had the same prob and found a solution?






