PDA

View Full Version : Textures and Colors



AleksX
08-01-2002, 06:51 AM
I've got a question. Does anybody knows why colors of non textured objects changes when I wrote in my code glEnable(GL_TEXTURE_2D)?? I've already wrote glEnable(GL_COLOR_MATERIAL) and it didn't worked.
Thank's for tips

Joel
08-01-2002, 07:04 AM
Originally posted by AleksX:
I've got a question. Does anybody knows why colors of non textured objects changes when I wrote in my code glEnable(GL_TEXTURE_2D)?? I've already wrote glEnable(GL_COLOR_MATERIAL) and it didn't worked.
Thank's for tips

Don't flame me if it sounds insulting but did you turn texturing off ?

Joel.

AdrianD
08-01-2002, 07:10 AM
yes, i have an answer:

that' because you enabled texturing, and even if don't specifiy any mapping-coorinates, there are some used.
in immediate mode the last specified mapping-coordiantes are used for EVERY point. so your (last specified)texture is everywhere on the object, but you can only see one texel.

btw.:
maybe you should discuss such "advanced problems" in the beginner forum...

AleksX
08-01-2002, 08:18 AM
It worked. Thanks both of you! http://www.opengl.org/discussion_boards/ubb/smile.gif