Jump to content

Glow Shader not working?


Recommended Posts

Posted

I'm trying to get a glow shader working on one of my skins. I made the normal textures as well as a "_glow" texture where everything is black except what I want to glow. I've made a shader file that looks like this:

 

models/players/BOTDRAmando

{

{

map models/players/BOTDRAmando/jangohelm

blendFunc GL_ONE GL_ZERO

rgbGen lightingDiffuse

}

{

map models/players/BOTDRAmando/jangohelm_glow

blendFunc GL_ONE GL_ONE

rgbGen identity

detail

glow

}

}

 

I put that into a PK3, with the textures being in models/player/BOTDRAmando and the shader being in shaders/BOTDRAmando.

 

Thoughts?

Posted

Is the shader file in a folder called shaders/BOTDRAmando/ or is it shaders/BOTDRAmando.shader ? I believe all shader files need to be in the root of /shaders/

Posted
PK3 just has shader/BOTDRAmando.shader

should be shaders/BOTDRAmando.shader or was that just a typeo?

 

Anyways, I don't know exactly how it works, but this is a working mando helmet glow shader on my model, so it might be of use:

models/players/mug_custom/Helmet
{ 
{
map models/players/mug_custom/Helmet
rgbGen lightingDiffuse
}
{
map GFX/Effects/skirata
blendfunc add
rgbGen lightingDiffuse
tcGen environment 
}
{
map GFX/Effects/visionn_glow
blendFunc GL_SRC_ALPHA GL_SRC_ALPHA
tcMod scroll 3 0.5
}
{
map models/players/mug_custom/Helmet
blendfunc blend
rgbGen lightingDiffuse
}
{
map GFX/Effects/skirata
blendFunc GL_DST_COLOR GL_SRC_COLOR
tcGen environment
}
{
map models/players/mug_custom/Helmet_glow
blendFunc GL_ONE GL_ONE
glow
rgbGen identity
}
}

Posted

That was just a typo in my post, sorry.

 

I tried that shader and changed the file paths accordingly, but no luck. ):

Posted (edited)

Here is how my skin uses glow:

 

 

{

map models/players/jeditrainer/trainer_parts_KJC1_glow

blendFunc GL_ONE GL_ONE

glow

}

 

 

Perhaps you have another old shader file that is overwriting your new one?

Edited by SiLink
Posted

Been too long since I've worked with shaders for me to figure this out just from text. Send me the file and I'll look it over, if you want.

Posted

PM sent, thanks. I've tried that shader and a few others and I think I know why THIS ONE didn't work but I've tried several others and no luck.

Posted

There were a couple unnecessary lines I forgot to cut out of MUG's shader. Though, @@Inyri, I am having another problem... I did a copy of the same skin on the base Boba model. I used the same shader and changed the file paths accordingly, nothing. I quadruple checked all the spellings of the filepaths and made sure my original texture files were properly named as well, no dice. Ideas?

Posted

Might be a silly question, but you did create actual new textures for the shader right? e.g. bobafett_torso_glow.jpg ?

Posted

I did yes. I simply reconstructed the .pk3 and that seems to have fix it magically. =/ Oh well, it works now, yay.

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