ZeroRaven Posted November 10, 2014 Posted November 10, 2014 So I've added a glow shader to my lights in my map. However when testing in game the whiteimage is completely solid.I'm assuming I need to added a translucent flag to it in the SHADER file? textures/trak5/light1a{qer_editorimage textures/trak5/light1a.jpgq3map_surfacelight 7500q3map_backSplash 0.5 8q3map_nolightmapq3map_lightRGB 1 1 1{map $whiteimageblendFunc GL_DST_COLOR GL_ZEROrgbGen const ( 1.00 1.00 1.00 )}{map $whiteimageblendFunc GL_ONE GL_ONErgbGen const ( 1.00 1.00 1.00 )glow}}And also I'm thinking that the first map $whiteimage should be the path to my texture file right?Used the generic light shader tutorial so I'm assuming the fault lies with my understanding of the script.Also slightly on topic, does anyone have a complete set of the TRAK textures? the website went down and now I cant find them anywhere. Just what I have in my resources (which doesnt include the glow files) Check out some of my previous works:JK Hub - [Editor: Zero Raven]
Xycaleth Posted November 10, 2014 Posted November 10, 2014 It might help if you mentioned what you expected it to look like. We can't read your mind
ZeroRaven Posted November 11, 2014 Author Posted November 11, 2014 Ok well as stated, ya'll aren't mind readers.The following picture is how the shader looks in level.The WHITE area's are where my lights should be.I'm wondering if by adding a line to my shader in the first post, if I can make the $whiteimage glow which is currently blocking my textures, translucent rather then the solid white texture blocking mess.I want to be able to actually see my texture behind the glow is what I'm saying.If I still had access to the full texture set from TRAK5, i'd just do that, but when I converted it for use in JK i removed all "unnecessary files" like the normal maps and glows since the old SITH engine didn't support them. Check out some of my previous works:JK Hub - [Editor: Zero Raven]
Szico VII Posted November 18, 2014 Posted November 18, 2014 Instead of whiteimage point the glow stage to a duplicate of your base texture, but modify it to highlight where you want the glow areas to be:And yes the first whiteimage line should point to your texture file, because as that shader stands the only thing the actual light texture is being used for is the editor, not ingame render Example (base image on left and glow image on right) Boothand likes 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