PreFXDesigns Posted January 3, 2019 Posted January 3, 2019 Hello guys! A week ago, a friend made me a custom hilt, where as I did the texturing. I'm very pleased with the result Below, you can see how it looks in Modview: Now, ingame it looks a bit dark overall, so I was thinking of adding some nice effects to it by creating a shaderfile. My request: I would like to add yellow glow to the gold parts, so that they would stand out. Besides that I would also like to add some red glow to the aurebesh text & red buttons. The funny thing is that I'm able to add glow to my playermodel. I kept the same layout, but changed the foldernames but that didn't work. I also tried looking at other people's shaderfiles and therefore altered mine, but yet again same result.That's why I am here to ask you guys for help. it doesn't seem that difficult, but I just don't know how to do it Incase someone wants to do it or just want to take a look at the pk3 file:Download link: https://ufile.io/p3ye6 (pk3 already consists out of glow and spec file) GreetingsPreFXDesigns
AshuraDX Posted January 4, 2019 Posted January 4, 2019 I took a look at it, but before I hand out the solution:I often browse this page from my phone and can't really troubleshoot pk3 files on the go, especially with shaders or other text based files that cause you trouble you could just post them here in spoiler and code tags.That way whoever is going to try and help you solve your problem can just look right at what's causing the problem. A more detailed description of the problem would have been great aswell, because I had no clue what to expect when I downloaded and dropped the file in my basefolder.It could have been anything from "the shader does nothing" to "It doesn't look as I wanted it to". Knowing what type of problem you're looking for can be a tremendous help. Anyway, now onto fixing the issue: The guy that made this hilt model for you used \ instead of / when specifieing the shaderpaths for the model, because of this the game doesn't find your shader for that texturepath. So the shaderpath in your .shader file was: models/weapons2/saber_pre/prehilt While the .md3 file is looking for: models\weapons2\saber_pre\prehilt In theory this shouldn't cause any issues but for some reason it does in games absed on this engine, I guess it was an oversight during coding.The fix is to just replace / with \ in your .shader file, like so: models\weapons2\saber_pre\prehilt { q3map_onlyvertexlighting //You don't actually need this line, this is information for q3map2 when compiling a map, so unless this saberhilt is on display as a misc_model entity in some map you don't need it. { map models\weapons2\saber_pre\prehilt rgbGen lightingDiffuse } { map models\weapons2\saber_pre\prehilt_glow BlendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR rgbGen identity glow } } PreFXDesigns likes this
PreFXDesigns Posted January 4, 2019 Author Posted January 4, 2019 Thank you for your response AshuraDX, I appreciate your help In the future I will try to be more specific about the problem aswell. Now back to the topic; I replaced the / to \ but I now I got this:https://i.postimg.cc/hjRbL0RF/menu-error.png I even tried to copy yours, incase I made a typo in the shaderfile, but still same result. Maybe there is a problem inside the glm file? When removing the shader the error dissapears.
Langerd Posted January 4, 2019 Posted January 4, 2019 Thank you for your response AshuraDX, I appreciate your help In the future I will try to be more specific about the problem aswell. Now back to the topic; I replaced the / to \ but I now I got this:https://i.postimg.cc/hjRbL0RF/menu-error.png I even tried to copy yours, incase I made a typo in the shaderfile, but still same result. Maybe there is a problem inside the glm file? When removing the shader the error dissapears.Show us the screenshot of the txt file. Dont show us the text.
AshuraDX Posted January 4, 2019 Posted January 4, 2019 @@PreFXDesignsWTFHow did you manage to fuck up your main Menu while editing the .shader file for your saber?Did you replace / with \ in ALL shader files in your basefolder? PreFXDesigns likes this
Daedra Posted January 4, 2019 Posted January 4, 2019 Ok here we are. For the record, I remade the shader completely, and fixed a file path in the glm model. http://www.mediafire.com/file/k56stbdmkixs30f/zzzprefxs-hilt.pk3/file All you have to do is change the glow texture to something you find looks good. Use trial & error on image editing program to get a good looking result. Teancum, Siegfried and PreFXDesigns like this
PreFXDesigns Posted January 4, 2019 Author Posted January 4, 2019 @@PreFXDesignsWTFHow did you manage to fuck up your main Menu while editing the .shader file for your saber?Did you replace / with \ in ALL shader files in your basefolder?Nope, sometimes happens when the shaderfile is fucked up Thanks you so much Daedra! This was effect/result, that I was looking for "and fixed a file path in the glm model." Could you be more precise, so that I can tell this to my friend who made the hilt Siegfried likes this
Daedra Posted January 4, 2019 Posted January 4, 2019 Nope, sometimes happens when the shaderfile is fucked up Thanks you so much Daedra! This was effect/result, that I was looking for "and fixed a file path in the glm model." Could you be more precise, so that I can tell this to my friend who made the hilt Changed the \ to /. Siegfried and PreFXDesigns like this
AshuraDX Posted January 4, 2019 Posted January 4, 2019 @@PreFXDesignsRight, but only when a "}" is missing. Siegfried and PreFXDesigns like this
Teancum Posted January 4, 2019 Posted January 4, 2019 Okay, so that's a snazzy looking hilt. Well done. Siegfried and PreFXDesigns 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