PDA

View Full Version : Dark textures in a dark scene



nexusone
11-30-2002, 04:25 AM
I working on a night scene, any tips on displaying darks looking objects with a dark backgound?

kaysoft
11-30-2002, 06:52 AM
Have you thought of using lightmaps? You can get much out of it.

Bob
11-30-2002, 07:33 AM
Just a, perhaps stupid, idea I got. Use blending and the blend color to control the darkness. Use glBlendColor to set the darkness factor, and set blend function to GL_CONSTANT_COLOR and GL_ZERO. Yes, involves blending, but shouldn't hur performance very much since there's no frame buffer readback.

Perhaps not a very good solution if you don't need to change the darkness factor over time.