Page 1 of 1

shader problem

Posted: Thu May 06, 2004 11:43 pm
by agentmad007
hi ,

it seems that my post disappeared strange :(

i had a problem with a shader here is the error in console

Code: Select all

ERROR: TableForFunc called with invalid function '8' in shader 'textures/sgcanims/evfront'
and the shader is here

Code: Select all

textures/sgcanims/evback
{
    qer_editorimage textures/sgcanims/evback.tga
    q3map_surfacelight 10
    surfaceparm nolightmap
    surfaceparm water
    deformVertexes wave 128 sin 0 1 0 0.75
    {
        map textures/sgcanims/evback.tga
        blendFunc GL_ONE GL_SRC_COLOR
        tcMod rotate 20
        tcMod stretch sin 1.05 0.05 0 0.5
    }
    {
        map textures/sgcanims/evback.tga
        blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
        tcMod rotate -10
    }
    {
        map textures/sgcanims/evback.tga
        blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
        tcMod rotate -40
        tcMod stretch sin 1.05 0.05 0 1
    }
}

textures/sgcanims/evfront
{
    qer_editorimage textures/sgcanims/evfront2.tga
    q3map_surfacelight 10
    surfaceparm nolightmap
    surfaceparm water
    deformVertexes wave 128 sin 0 1.5 0 0.75
    {
        map textures/sgcanims/evback.tga
        blendFunc GL_ONE GL_ZERO
    }
    {
        animMap 6 textures/sgcanims/evfront2.tga textures/sgcanims/evfront4.tga textures/sgcanims/evfront6.tga textures/sgcanims/evfront8.tga textures/sgcanims/evfront6.tga textures/sgcanims/evfront4.tga 
        blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
        tcMod rotate 20
        tcMod stretch sin 1.05 0.05 0 0.3
    }
    {
        animMap 6 textures/sgcanims/evfront2.tga textures/sgcanims/evfront4.tga textures/sgcanims/evfront6.tga textures/sgcanims/evfront8.tga textures/sgcanims/evfront6.tga textures/sgcanims/evfront4.tga 
        blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
        tcMod rotate -10
        tcMod stretch noise 1.1 0.1 0 1
    }
}

ty the shader wont be so easy to correct i understand nothing :/

thanks for help

Posted: Fri May 07, 2004 1:42 am
by blue60007
No your post is still here. It is over yonder :wink:

Posted: Fri May 07, 2004 2:47 am
by agentmad007
true , i was temporary blind maybe ... :P

Posted: Fri May 07, 2004 2:51 am
by blue60007
agentmad007 wrote:true , i was temporary blind maybe ... :P
Don't worry, I've done that before myself :oops:


btw 500th post!! :P

Posted: Fri May 07, 2004 2:59 am
by agentmad007
:shock: hu hu happy birthday LOL .......sorry for that unsefull post , i m still searching a help to my problem

8-)

Posted: Fri May 07, 2004 3:10 am
by blue60007
not much to get exicted about...

try tltrude's suggestion in the other post.

Posted: Fri May 07, 2004 3:22 am
by agentmad007
well i tried and i tried a lot other solution .......without success i know that shifty or one of hs team got it work .........but shifty dont seem to come oftne by here

i let him a pm lets see...........this shader problme sux!
damn alwyas get kicked of my map!