texture / color mixing
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
-mike
use GL_DECAL or GL_REPLACE instead of GL_MODULATE
http://members.xoom.com/myBollux
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement