How do you fade (alpha fade) an object in/out? (like a klingon ship does).
The only way I could do this, is to take the textures and modify the alpha channel and resend the textures to the video memory each frame. But this would be very slow.
Is there a way to effect the overall alpha attribute of a texture at render time?
will produce artifacts imho (hidden polygons popping-up)
How about this: disable color (keep depth-test and depth-write enabled), draw your object. And then enable color and draw the object the way zeoverlord mentioned. Just draw your object last (after background and things that could be behind it) ^^
Ok, I got it working. I had to call glEnable(GL_COLOR_MATERIAL) but now my lighting is not working. Everything is bright. I have a maze with lamps in the corners, but once I enable GL_COLOR_MATERIAL everything is just bright (ignores my lights).