Advertisement

Texture mapping

Started by March 15, 2001 05:11 PM
2 comments, last by gt6081a 23 years, 11 months ago
Hello everyone. I am having a weird problem with some texture mapping I am doing. I am making a game, a scrolling shooter game. Anyway, when I map a texture to the ground....all the other 3d objects get the color of the texture. If yu want to see my source so far, icq me at 54272200. Thanks for your help! Eric
Are you drawing the un-textured polygons with flat colours? If so, did you remember to disable textures when drawing them?
-----------------------"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else's drivers, I assume it is their fault" - John Carmack
Advertisement
The other objects are using material properties. What caommand disables textures, I may just diasble them after I draw the ground for a quick fix if need be.

Eric
glDisable(GL_TEXTURE_2D)
should do it.
However, it might be faster(not sure) to create a white texture and bind that one instead. Might be worth looking into.

This topic is closed to new replies.

Advertisement