Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Texture Mapping Polys and Quads

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2000

    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!

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Feb 2000

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts