Environment texture problem


(GRouZER) #1

I wanted to put a environment texture on the first person view gun but it doesn’t have the effect it suppose to have.
When I look at the gun which is dropped by a player on the ground then the environment texture does work.

So, is it even possible to have the envmap effect on a firstperson view gun or other item?
Should I add another line to the shader to make it work?

envmap code:


{
map textures/effects/tinfx.tga
rgbGen lightDiffuse
tcGen environment
}


(GRouZER) #2

I just found out that the environment effect does work but only when the firstperson view weapon is animating, like reloading.
But it hasn’t got the environment effect when looking around, which does work in wolf:ET.


(MoP) #3

Looks like you might be missing a Blendfunc?
Unless your first-person weapon has no main texture at all, that stage might not show up if it’s not blended.
Also, if you wanna control how much the envmap is blended onto the weapon, your weapon texture will need an alpha channel (32-bit TGA), usually white is the most reflective (100% envmap) and black is not reflective (no envmap).