Red glass


(Flippy) #1

Heyho…

lil problem here…
im trying to get red glass in my map, but it doesnt want to be semi-transparent…
i used “sfx/tramglass2” as glass first, (which isnt red) and now i want it red… so i did this:

opened sfx.shader and copied everything under “tramglass2”
opened common/dirtymirror2.tga in photoshop (which is the picture used for tramglass2)
it has an alpha channel.
I did Ctrl+U (to change hue/saturation) and turned it red (without touching the alpha-channel (i hope :S)
i saved the red glass as “redglass.tga” (Save alphachannels on) in textures/mapname/

changed the shader like this:

textures/mapname/redglass.tga
{
qer_editorimage textures/mapname/redglass.tga
qer_trans 0.5
surfaceparm alphashadow
surfaceparm glass
surfaceparm pointlight
surfaceparm trans
{
map textures/mapname/redglass.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen vertex
}
}

Bold is what i changed.

It doesnt work… it’s not semi-transparent :S
When i use tramglass2 (which has the same shader :S) it is perfectly semi-transparent, but the red picture on it won’t work… -_-’


(kamikazee) #2

I believe you need to use a picture with a good alpha channel.


(Flippy) #3

hm nvm… i restarted my Pc today and it suddenly worked :clap: