Jump to content

Shader Trouble


Recommended Posts

Posted

I can't get a certain very realistic water shader to work in my Kashyyyk map.  I was borrowing some textures and shaders from Sith-J-Cull's Kashyyyk map, but I am still unable to get the realistic water shader to work.  In his map, the water is very realistic, yet when I use the same exact shader in my map, it appears way too reflective and stretched out, like stretched or smeared glass.  I'm not talking about the waves that come up onto the shore, (I already figured out how to do that using patches) I am talking about the main water.

Here's a link to a demonstration video of Sith-J-Cull's Kashyyyk map ->

Posted

Do you have anything for us to look at for YOUR map?  eg: Shader files, screenshots, something?  Hard to kind of just guess what you did wrong.

JKG Developer

Posted

Lol, yeah sure, here is what the .shader file looks like

textures/Asjc_kashyyyk/water_surface1


{

qer_editorimage textures/Asjc_kashyyyk/water1
qer_trans 0.75
sort banner
surfaceparm water
surfaceparm nonsolid
surfaceparm nomarks
surfaceparm trans
q3map_material water
q3map_tessSize 512
deformvertexes normal 0.1 0.1
deformvertexes wave 100 sin 1 2 2 0.6

{

map textures/Asjc_kashyyyk/waterenvmap1
tcGen environment
blendFunc GL_ONE GL_ONE
}
{

map textures/Asjc_kashyyyk/skyenvmap1
tcGen environment
blendFunc GL_DST_COLOR GL_ZERO
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO

}
{
map textures/Asjc_kashyyyk/skyenvmap1_sun
tcGen environment
rgbGen const ( 1.00 0.95 0.79 )
blendFunc GL_ONE GL_ONE
glow
}
}

 

 

Unfortunately, I do not have a screenshot to show you.  This is only because I already used an alternate water texture on the map, and the compilation process takes hours

Posted

I can never seem to get shaders to work in my maps, I always just use the base textures, but this gets annoying sometimes...

Posted

2 things spring to mind

 

1) That water is lughtmapped so try lighting it better or writeva shader with no lightmap.

 

2) Try a tessSize of 128 or 64.

 

Both require recompile unfortunately...

Posted

Alright, I changed the tessSize to 128 and recompiled the map using the shader, but I got the same weird error... Below are some screenshots of what the problem is

 

 



shot0000.jpg

 

shot0001.jpg

 

shot0002.jpg

 

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...