water shader problem


(Purplepill) #1

Hello,

I have a problem with my water shader, it draws strange points on my water surface :frowning: and i have no idea how to get rid of them. I already used the search button but couldnt find any comparable problem. I need the water to be transparent, wavy and moving if thats possible.

Plz help me :o :o :o

here is the shader i use:

textures/nicotine/slurmy2
{
qer_editorimage textures/nicotine/slurmy2
qer_trans .8
q3map_surfacelight 300
q3map_globaltexture
cull disable
deformVertexes wave 64 sin .5 .5 0 .5
surfaceparm nonsolid
surfaceparm trans
surfaceparm water
deformVertexes wave 160 sin 0 10 0 0.3
tessSize 384
q3map_globaltexture
{
map textures/nicotine/slurmy2.tga
blendFunc GL_dst_color GL_one
rgbgen identity
tcmod scale .5 .5
tcmod transform 1.5 0 1.5 1 1 2
tcmod scroll -.05 .001
}
{
map textures/nicotine/slurmy.tga
blendFunc GL_dst_color GL_one
rgbgen identity
tcmod scale .5 .5
tcmod transform 0 1.5 1 1.5 2 1
tcmod scroll .025 -.001
}
{
map textures/nicotine/underground2.jpg
blendFunc GL_dst_color GL_one
rgbgen identity
tcmod scale .25 .5
tcmod scroll .001 .025
}
{
map $lightmap
blendFunc GL_dst_color GL_zero
rgbgen identity
}
}

[/img]


(Wezelkrozum) #2

did you added your .shader-file in the script/shaderlist.txt?


(Detoeni) #3

I would start by removing this one:

q3map_surfacelight 300

Conferm that this is the problem then have a play with:

q3map_backSplash # #

See here for more info:

http://members.lycos.co.uk/quakeroats/q3map2/shader_manual/

You also have…

q3map_globaltexture 

…listed twise

Also its good practice to order your shaders prams’ like so:

textures/nicotine/slurmy2 
{ 
qer_editorimage textures/nicotine/slurmy2 
qer_trans .8 
q3map_surfacelight 300
q3map_globaltexture 
surfaceparm nonsolid 
surfaceparm trans 
surfaceparm water 
tessSize 384 

deformVertexes wave 160 sin 0 10 0 0.3 
deformVertexes wave 64 sin .5 .5 0 .5 

cull disable 

{ 
map textures/nicotine/slur....

just to keep things simple (shaders are hard art to master as it is, no point in making more work for your self :wink: )


(Purplepill) #4

Thanks man works perfectly now. :slight_smile: