Jump to content

Can't get saber hilt shader to work


Go to solution Solved by Delta_135,

Recommended Posts

after following

l i have finally managed to make a custom lightsaber hilt and get in game

but whenever i try to apply a shader to it the shader doesn't show up no matter what i do

i did try to get a few custom sabers from this site to see if their shader worked and it did, i even tried to copy their code just changing the paths to mach my saber

but it still won't work

 

so a little help would be appreciated

 

here is the code:

 

 

models/weapons2/LegoSaber/LegoSaber
{
q3map_nolightmap
    {
        map models/weapons2/LegoSaber/LegoSaber
        blendFunc GL_ONE GL_ZERO
        rgbGen lightingDiffuse
    }
    {
        map models/weapons2/LegoSaber/LegoSaber-spec
        blendFunc GL_SRC_ALPHA GL_ONE
        detail
        alphaGen lightingSpecular
    }
    {
        map models/weapons2/LegoSaber/LegoSaber_env
        blendFunc GL_DST_COLOR GL_SRC_COLOR
        detail
        tcGen environment
    }
}
 

 

some of the hilts i downloaded had a .skin file so i made one too

 

saber_w,models/weapons2/LegoSaber/LegoSaber
 

 

 

and yes i did pack as a pk3 file

and yes it's lego saber hilt model (only thing i could think of)

Link to comment
  • Solution

 

got it to work :)

 

here's what i did:

changed all \ to / in the custom propertie md3shader in blender and all other shaders and .skin files

exported the model as "saber_w"

saved all .tga images as .jpg with no progressive or optimized settings

 

and that did it :)

 

thanks

(should i mark this post as the answer?)

Link to comment

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...