Jump to content
  • Advertisement
Sign in to follow this  

Help with texture mapping?

This topic is 4415 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!