water / +fog


(Nobodylikeme) #1

I have problems with my RTCW:ET liquid shader
I made a water+fog in q3a and I want it to convert in rtcw et
but it show’s ugly
here some q3arena screens:




an here are the et screens:




? can sombody helped me
please correct me when you have time my english is not so good … :>


(Drakir) #2

Post the shader stuff! So that we can see what u are working with!


(Nobodylikeme) #3

//Shader by Nobodylikeme
textures/artic/cold_water
{
	qer_editorimage textures/artic/cold_water.tga
	surfaceparm fog
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm water
	cull disable
	qer_trans 0.5
	fogparms ( 0.423529 0.478431 0.643137 ) 450 //here !!!
	{
		map textures/artic/cold_water.tga
		blendfunc gl_dst_color gl_one_minus_dst_alpha
		rgbGen identity
		tcMod scale -0.5 -0.5
		tcMod scroll 0.025 0.025
	}
}

Is there any other spezif. fog command in rtcw&ET ?

thx for help


(Zombie) #4

I have the same Problem. Tried many shaders working on Jk2/JK3 and q3, but none is working on ET.

My last try was this one, but also without fog.
Anybody knows working water-shader with fog within ?


textures/liquids/my_water
{
	qer_editorimage textures/liquids_sd/siwa_water.tga
	qer_trans .4
	q3map_globaltexture
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nonopaque
	surfaceparm water
	surfaceparm nomarks
	surfaceparm	fog
	q3map_material	Water
	q3map_nolightmap
	q3map_onlyvertexlighting
	waterfogvars ( 0.11 0.13 0.15 ) 512
	cull disable
	nopicmip
	{ 
	map textures/liquids_sd/siwa_water.tga
        	blendFunc GL_DST_COLOR GL_ONE_MINUS_SRC_ALPHA
        	rgbGen exactVertex
        	alphaGen const 0.8
        	tcMod turb 0 0.01 0.01 0.01
        	tcMod scroll -0.005 -0.001
        	tcMod scale 2 2
	}
	
	{ 
	map textures/liquids_sd/siwa_shimshim1.tga
        	blendFunc GL_DST_COLOR GL_ONE_MINUS_SRC_ALPHA
	tcGen environment
        	alphaGen const 0.7
        	tcMod turb 0 0.01 0.001 0.01
        	tcMod scroll 0.001 0.002
        	tcMod scale 0.5 0.5
	}
}



(Zombie) #5

Anybody ?

Is there any chance to make water-shader with fog ?


(kat) #6

there’s a special surfaceparm to use for fogged water as ‘surfaceparm fog’ doesn’t work correctly.

If you look at the liquid shaders in default RtCW have a look at the ‘beach’, there’s a ‘command’ in there you need to add; get rid of surfaceparm fog in your water shaders and add waterFogVars ( 0 0 0 ) 1024 - where ‘0 0 0’ are colour values and 1024 is a fog cull [thickness] value