PDA

View Full Version : "glow" textures for new models not working


sevristh
05-20-2006, 09:48 AM
I have searched the forums for a topic like this but havent found one.

I have made several new textures that "glow" and models that just have basic uvw mapping textures added ,all of which work perfectly.

But when i made some textures for models that i want to have parts that "glow" in game i have had some trouble, the textures all have coresponding shaders and shader-ed opens them and displays them with the parts "glowing" nicely, fine you might think so lets fire up the test level and see them, but they dont glow in-game, they have textures and all are displaying perfectly except for the "glow".

I have made many Standard textures for JKA that glow and all work fine, its just when i try to get a model to have a texture that glows ithat it all goes pear shaped.

Have any of you guys heard of this error, ?

Just for your info, mapping KJA SP

I have included the new shaders in the shader list file in the shaders folders, i am using gtk 1.4.

all the textures are in jpeg format,

I am basing the "glow" shader files on those that shipped with the game,

for example here is a model shader file that glows.

models/map_objects/ships/academy_frame
{
{
map $lightmap
rgbGen identity
}
{
map models/map_objects/ships/academy_frame
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
}
{
map models/map_objects/ships/academy_frame_glow
blendFunc GL_ONE GL_ONE
glow
rgbGen identity
}
}

and here is my shader file foy my texture that wont glow.

models/map_objects/dstar/imp_controls3
{
{
map $lightmap
rgbGen identity
}
{
map models/map_objects/dstar/imp_controls3
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
}
{
map models/map_objects/dstar/imp_controls3_glow
blendFunc GL_ONE GL_ONE
glow
rgbGen identity
}
}

as you can see as far as the text goes there is no reason that my texture should'nt glow all the files are correct and display fine in shader-ed with no errors.

Any help here would be great,

Sev