   Texture Mapping to a Human Face
  This is probably a trite problem for most people, so here I am asking... I've been learning how to map texture in OpenGL, and I found there are many ways to do it. I think I just haven't found the method for my problem yet.First, I uploaded a youtube video of my problem so you can laugh at me :)http://www.youtube.com/watch_private?v=sOFtIXdRljI&sharing_token=gvQhB6lDPXopldLItmSoRQ (link edited!)I want to make a human head model from pictures. Currently, I can make a rough outline model if given feature points, but now I need to add textures.I'm using glTexGen(GL_S, ...) and glTexGen(GL_T,...) to map textures according to the image plane the picture is taken from. The results are not good as you can see. Textures also go on the back of the head. Also it'll get worse if i'm using a picture taken from a different angle, wrong texture will be more clearly visible, i.e. cheeks will have eyes.Is there a way to somehow clip out the texture at a certain plane? (i.e. for this frontal picture, stopping texturing at the half of the head)I tried to avoid asking on the forum, but I couldn't find a solution elsewhere. Tutorials I've been looking all over the internet mostly deal with cubes :/Using cylindrical/spherical texture map would be a solution, but then I gotta worry about making the map from pictures :(If anyone have any idea, please let me know~ even if you don't have the exact solution![Edited by - Shiine on May 29, 2010 11:35:23 PM]
  Hi,I've never done this so this is only a suggestion but here it goes :when you are creating the 3d vertices for your model, why don't you extract the color of the pixel aswell? Once your model is built, you create a texture holding the colors of the vertices and compute texture coordinates for that texture ?   ;  I suggest using a 3D tool such as Blender, 3D studio max or Maya. It would be far better than any algorithm or glTexGen.   ;  Can not see that video it says its private.   ;  Thank you for all your ideas!@At0m Your idea sounds like it'll work! but I'll have to learn more about how to do that first. I think there would be an easier way, but if I can't find an answer, I"ll have to try your idea. Thanks :)@V-man I have to make a program, and I want to learn OpenGL as well ^^;; but thanks!@mrr Thanks for letting me know! I really didn't know how to work Youtube, and i wouldn't have known if you hadn't told me!new link here: http://www.youtube.com/watch_private?v=sOFtIXdRljI&sharing_token=gvQhB6lDPXopldLItmSoRQ   