Texture problems

Started by
1 comment, last by Drakon 22 years, 1 month ago
All my textures appear slanted. That, and they only appear on one side of a face(or whatever they are). Heres the code for one of my faces: glTexCoord2f(0.0f, 0.0f); glVertex3f(18, 1, 17.5); glTexCoord2f(1.0f, 0.0f); glVertex3f(14.5, 1, 17.5); glTexCoord2f(0.0f, 1.0f); glVertex3f(14.5, -1, 17.5); glTexCoord2f(1.0f, 1.0f); glVertex3f(18, -1, 17.5); I''m assuming the problem is in the glTexCoords, but I don''t know what.
"Go for the eyes, Boo, go for the eyes!"
Advertisement
I believe this should be the correct way to do it..
glTexCoord2f(0.0f, 0.0f); glVertex3f(18, 1, 17.5);
glTexCoord2f(1.0f, 0.0f); glVertex3f(14.5, 1, 17.5);
glTexCoord2f(1.0f, 1.0f); glVertex3f(14.5, -1, 17.5);
glTexCoord2f(0.0f, 1.0f); glVertex3f(18, -1, 17.5);
Thanks
"Go for the eyes, Boo, go for the eyes!"

This topic is closed to new replies.

Advertisement