Texture Mapping Polys and Quads
I am a newbie OpenGl coder and I am wanting to use textured "skins" or decals to overlay on top of my 3d models. So far all the code I've seen maps a texture onto a single flat quad. I was wondering if any of you had tips for how to map a large texture across a group of Quads or polys?
Ex: I want to map a Superman symbol across a chest that is made up of 20 Quads.
Thanks for your help!
Re: Texture Mapping Polys and Quads
You can try to use the OpenGL automatic generator of texture coordinates but the result will not always be what you expect.
Your best bet is to find some algorithm on how to calculate those texture coords.
As far as I am concerned, I model everything with 3DS Max (which calculates tex coords) and I export the model in ASE format (see topic in same forum on 3DS Max). Then I just had to write an ASE parser for my program.
If you want more info on how to automatically generate texture coords with OpenGL, you should look at glTexGen instruction.