View Single Post
Old 07-12-2008, 09:21 AM   #1
FoolInTheWave
Rookie
 
FoolInTheWave's Avatar
 
Join Date: Apr 2008
Location: Michigan
Posts: 79
Question MP Shader trouble...

I was adding a shader to the default Kyle skin, here is the shader:

Code:
models/players/kyle/kyle_head
{
    {
        map models/players/kyle/kyle_head
        rgbGen lightingDiffuse
        //alphaFunc GE128
    }
    {
        map models/players/kyle/kyle_head
        blendFunc GL_SRC_ALPHA GL_ONE
        alphaGen lightingSpecular
	 detail
    }
}

models/players/kyle/kyle_legs
{
    {
        map models/players/kyle/kyle_legs
        rgbGen lightingDiffuse
        //alphaFunc GE128
    }
    {
       map models/players/kyle/kyle_legs
        blendFunc GL_SRC_ALPHA GL_ONE
        alphaGen lightingSpecular
	 detail
    }
}

models/players/kyle/kyle_legs_blue
{
    {
        map models/players/kyle/kyle_legs_blue
        rgbGen lightingDiffuse
        //alphaFunc GE128
    }
    {
       map models/players/kyle/kyle_legs_blue
        blendFunc GL_SRC_ALPHA GL_ONE
        alphaGen lightingSpecular
	 detail
    }
}

models/players/kyle/kyle_legs_red
{
    {
        map models/players/kyle/kyle_legs_red
        rgbGen lightingDiffuse
        //alphaFunc GE128
    }
    {
        map models/players/kyle/kyle_legs_red
        blendFunc GL_SRC_ALPHA GL_ONE
        alphaGen lightingSpecular
	 detail
    }
}


models/players/kyle/basic_hand
{
    {
        map models/players/kyle/basic_hand
        rgbGen lightingDiffuse
        //alphaFunc GE128
    }
    {
        map models/players/kyle/basic_hand
        blendFunc GL_SRC_ALPHA GL_ONE
        alphaGen lightingSpecular
	 detail
    }
}

models/players/kyle/kyle_torso
{
    {
        map models/players/kyle/kyle_torso
        rgbGen lightingDiffuse
        //alphaFunc GE128
    }
    {
        map models/players/kyle/kyle_torso
        blendFunc GL_SRC_ALPHA GL_ONE
        alphaGen lightingSpecular
	 detail
    }
}

models/players/kyle/kyle_torso_blue
{
    {
        map models/players/kyle/kyle_torso_blue
        rgbGen lightingDiffuse
        //alphaFunc GE128
    }
    {
        map models/players/kyle/kyle_torso_blue
        blendFunc GL_SRC_ALPHA GL_ONE
        alphaGen lightingSpecular
	 detail
    }
}

models/players/kyle/kyle_torso_red
{
    {
        map models/players/kyle/kyle_torso_red
        rgbGen lightingDiffuse
        //alphaFunc GE128
    }
    {
        map models/players/kyle/kyle_torso_red
        blendFunc GL_SRC_ALPHA GL_ONE
        alphaGen lightingSpecular
	 detail
    }
}


models/players/kyle/kyle_extras
{
    {
        map models/players/kyle/kyle_extras
        rgbGen lightingDiffuse
        //alphaFunc GE128
    }
    {
        map models/players/kyle/kyle_extras
        blendFunc GL_SRC_ALPHA GL_ONE
        alphaGen lightingSpecular
	 detail
    }
}

models/players/kyle/kyle_extras_blue
{
    {
        map models/players/kyle/kyle_extras_blue
        rgbGen lightingDiffuse
        //alphaFunc GE128
    }
    {
        map models/players/kyle/kyle_extras_blue
        blendFunc GL_SRC_ALPHA GL_ONE
        alphaGen lightingSpecular
	 detail
    }
}

models/players/kyle/kyle_extras_red
{
    {
        map models/players/kyle/kyle_extras_red
        rgbGen lightingDiffuse
        //alphaFunc GE128
    }
    {
        map models/players/kyle/kyle_extras_red
        blendFunc GL_SRC_ALPHA GL_ONE
        alphaGen lightingSpecular
	 detail
    }
}

models/players/kyle/mouth_eyes
{
    {
        map models/players/kyle/mouth_eyes
        rgbGen lightingDiffuse
        //alphaFunc GE128
    }
    {
        map models/players/kyle/mouth_eyes
        blendFunc GL_SRC_ALPHA GL_ONE
        alphaGen lightingSpecular
	 detail
    }
}

models/players/kyle/kyle_face
{
    {
        map models/players/kyle/kyle_face
        rgbGen lightingDiffuse
        //alphaFunc GE128
    }
    {
        map models/players/kyle/kyle_face
        blendFunc GL_SRC_ALPHA GL_ONE
        alphaGen lightingSpecular
	 detail
    }
}
Now, the shader works fine in single player. But when I go to play multiplayer, the Kyle model is missing parts of the skin and I get error messages regarding the shader as follows:

Code:
WARNING: expecting '{', found 'blendFunc' instead in shader 'models/players/kyle/kyle_torso
WARNING: expecting '{', found 'blendFunc' instead in shader 'models/players/kyle/kyle_extras
WARNING: expecting '{', found 'blendFunc' instead in shader 'models/players/kyle/kyle_hand
WARNING: expecting '{', found 'blendFunc' instead in shader 'models/players/kyle/kyle_face
WARNING: expecting '{', found 'blendFunc' instead in shader 'models/players/kyle/kyle_mouth_eyes
Is there any way to make this shader work in multiplayer?


Error in REALITY.SYS. Run BIG_BANG.EXE (Y/N)?

Are you ready?
FoolInTheWave is offline   you may: quote & reply,