Advertisement

texture / color mixing

Started by November 26, 2000 01:57 PM
3 comments, last by PSioNiC 23 years, 11 months ago
ok my problem is with texture mapping and glColor. when i try to texture map something if i dont specify a color with the texture, i will just get black. if i do specify a color, opengl will mix that color with my texture. is there something i enabled by accident? is their something i forgot to do?
"This is stupid. I can't believe this! Ok, this time, there really IS a bug in the compiler."... 20 mins pass ..."I'M AN IDIOT!!!"
there''s no need to disable anything, just set the colour to all white and the texture will look normal

-mike
Advertisement
use GL_DECAL or GL_REPLACE instead of GL_MODULATE

http://members.xoom.com/myBollux
Or you could add this line

glDisable(GL_COLOR_MATERIAL);

That should do it... If not, do what was first posted with the whole changing the colour to white... It''s that easy.

S.
i down think so
i use GL_MODULATE GL_COLOR_MATERIAL and lighting
it works normal
but i remember time them polygon was black

you need to determine material propertys!
cool programer

This topic is closed to new replies.

Advertisement