Botdra Posted June 19, 2012 Posted June 19, 2012 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/jangohelmblendFunc GL_ONE GL_ZEROrgbGen lightingDiffuse}{map models/players/BOTDRAmando/jangohelm_glowblendFunc GL_ONE GL_ONErgbGen identitydetailglow}} I put that into a PK3, with the textures being in models/player/BOTDRAmando and the shader being in shaders/BOTDRAmando. Thoughts?
Link Posted June 19, 2012 Posted June 19, 2012 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/
Link Posted June 19, 2012 Posted June 19, 2012 I'll take a look at my skin when I get home, I've used glow myself in a few places.
MUG Posted June 19, 2012 Posted June 19, 2012 PK3 just has shader/BOTDRAmando.shadershould 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 } }
Botdra Posted June 19, 2012 Author Posted June 19, 2012 That was just a typo in my post, sorry. I tried that shader and changed the file paths accordingly, but no luck. ):
Link Posted June 19, 2012 Posted June 19, 2012 (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 June 19, 2012 by SiLink
Inyri Posted June 20, 2012 Posted June 20, 2012 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.
Botdra Posted June 20, 2012 Author Posted June 20, 2012 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.
Inyri Posted June 20, 2012 Posted June 20, 2012 Try what I suggested in PM and then report to everyone how it works.
Link Posted June 20, 2012 Posted June 20, 2012 How'd you end up fixing it? Was it Inyri's magic touch?
Botdra Posted June 20, 2012 Author Posted June 20, 2012 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?
Link Posted June 20, 2012 Posted June 20, 2012 Might be a silly question, but you did create actual new textures for the shader right? e.g. bobafett_torso_glow.jpg ?
Botdra Posted June 20, 2012 Author Posted June 20, 2012 I did yes. I simply reconstructed the .pk3 and that seems to have fix it magically. =/ Oh well, it works now, yay.
Botdra Posted June 20, 2012 Author Posted June 20, 2012 Relevant xkcd. My EXACT reaction when I got Velvet Assassin on Steam and it ran too fast to be playable. ): Caelum and Link like this
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now