🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Help with texture mapping?

Started by
-1 comments, last by MacCA 18 years, 2 months ago
hello all, I have to create a model of a head in opengl and map an image of my face to it for a university project. I have been able to create the mesh by exporting vertex and indices for a .wrl file using an array. I was wondering if i could do this wit the texture cords as well rather than every website i have seen typing the vertex and texcord for every point? e.g. glBegin(GL_TRIANGLES); glTexCoord2f(0.5069,0.6213),(0.5002,0.6398); glVertex3f(20.97f, 16.85f, 1.235f); glTexCoord2f(0.5185,0.7014),(0.5522,0.7124); glVertex3f( 23.46f, 23.93f, -11.17f); glTexCoord2f(0.5875,0.7015),(0.6147,0.6481); glVertex3f( 13.61f, 28.25f, -19.12f); glTexCoord2f(0.4795,0.2646),(0.4778,0.2554); glVertex3f(0.0f, 29.2f, -21.94f); Any help would be much appreciated. Mac

This topic is closed to new replies.

Advertisement