PDA

View Full Version : Texture color



yossi
11-21-2000, 06:11 AM
I see a strange phenomena in my application:
The color supplied in glColor3f is combined in some way I don't know with a texture color.
I draw a red line and after that I render a texture map and the texture becomes redish. I checked it in two different platforms and got the same result.
Do someone know in which situtation this can happen?
Many thanks
Yossi

Michael Steinberg
11-21-2000, 06:37 AM
Oh, well, I think it is, when you specify to "modulate" the texture on the face/line/vertex which has got a color applied. The colors are then weighted between texture and face.

paolom
11-22-2000, 04:27 AM
Originally posted by Michael Steinberg:
Oh, well, I think it is, when you specify to "modulate" the texture on the face/line/vertex which has got a color applied. The colors are then weighted between texture and face.

Also, don't forget your GL_LIGHTING state.
When lighting is enabled the texture is modulated by the glMaterial color properties, instead of glColor values.