Texture mapping
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?
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
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.
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
Popular Topics
Advertisement