PDA

View Full Version : Shader help


JavaGuy
09-30-2002, 05:31 PM
Okay, I'm completely new to making shaders, so bear with me. Here's what I have:


textures/sandcrawler/sand1
{
qer_editorimage textures/sandcrawler/sand1
surfaceparm nosteps
q3map_material Sand
{
map textures/sandcrawler/sand1
blendFunc GL_ONE GL_ZERO
}
{
map $lightmap
blendFunc GL_ZERO GL_SRC_COLOR
}
}



It looks okay except for two problems. The first is that it seems to glow, and I mean glow really brightly. The only light shining on it is from my sky shader, which isn't very bright (other things in the map do not appear brightly lit), but my sand shader glows almost bright white (the actual texture is a sort of yellowish brown in the editor).

The second problem is footsteps. I don't want guys walking on sand to sound like they're walking on a wood floor! I thought the surfaceparm nosteps would do it, but I still get footsteps when I walk across it.

Any idea what I'm doing wrong?

Bell
10-05-2002, 01:09 PM
try adding an edit rgb source and choose lighting diffuse.
for the steps try the playerclip or nonsolid, if i remember one of those worked for me.

Leslie Judge
10-05-2002, 04:47 PM
And what if you try this:

textures/sandcrawler/sand1
{
qer_editorimage textures/sandcrawler/sand1
surfaceparm nosteps
q3map_material Sand
{
map $lightmap
}
{
map textures/sandcrawler/sand1
blendFunc GL_DST_COLOR GL_ZERO
}
}