Archived

This topic is now archived and is closed to further replies.

gt6081a

Texture mapping

Recommended Posts

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

Share this post


Link to post
Share on other sites
Are you drawing the un-textured polygons with flat colours? If so, did you remember to disable textures when drawing them?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites