View Full Version : Texture problems
07-14-2003, 08:43 PM
I've written a program in which I create texture mapped polygons, along with non texturemapped polygons. It seems as though the colors of the texture affects the colors of the non-texture mapped polygons. Does anyone have any insight into this? Thanks.
07-14-2003, 09:44 PM
How do you define "non-texture mapped"?
If you mean your not sending TexCoords for those, then yes of course the texture will affect them, because all vertices get the texcoord assigned you sent last, because OpenGL is a state machine.
You have to explicitly disable texturing for all texture units which had it enabled before.
Or you could switch to a white texture and set texture environment to GL_MODULATE. Nah, just kidding.
07-15-2003, 08:23 AM
Thanks, it worked, I never realized that you would have to disable texture mapping to draw normal, just colored polygons. Thanks a bunch.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.