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
    Senior 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.


Similar Threads

  1. Texture on selected polys
    By ampersander7 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-11-2013, 05:14 PM
  2. Rendering many 2D texture quads
    By Spck:: in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 01-01-2013, 07:17 PM
  3. Edge-on polys and Texture Stacks
    By Jon Mc Jon in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 11-14-2005, 04:45 PM
  4. Multiple quads all same texture; I don't want it
    By in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 05-15-2005, 10:35 PM
  5. Texture only certain Polys...
    By Richelieu in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-11-2000, 05:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean