Results 1 to 3 of 3

Thread: vertex arrays and multiple textures

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2002
    Location
    Lawrenceville, GA USA
    Posts
    6

    vertex arrays and multiple textures

    I'm not sure if this belongs here or in the advanced forum, so if it gets moved let me know.

    I've been working with vertex arrays for a while as well as converting 3d objects from Lightwave to openGL. The problem is this: some objects are very complex and may require several texture maps to get the required effect. One part may need tex1 while this part needs tex2. I figure there could be up to 20 textures for one object alone.

    The question is this, is there a way to use more than one set of texture coords within a vertex array, and if so how is this done as well as keeping them attached to the correct sections of the model.

    Thanks in advance for any help.
    From dream to dream we leap
    and each day we dream anew

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jun 2003
    Posts
    177

    Re: vertex arrays and multiple textures

    You could either split your object based on texture, or combine the smaller textures into a larger texture (adjusting the tex coords accordingly), so that you end up with a single texture.

  3. #3
    Junior Member Newbie
    Join Date
    Dec 2002
    Location
    Lawrenceville, GA USA
    Posts
    6

    Re: vertex arrays and multiple textures

    I tried something like that with another object. The object has a top half and a bottom half. Each half is on a different portion of the texture map. The entire object is in a single array. But with I run the program the object has no texture even though it compiles the texture and texture coords correctly.

    Am I missing something or is there a way to fix this?
    From dream to dream we leap
    and each day we dream anew

Similar Threads

  1. Multiple textures in Vertex Arrays
    By Twixn in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-14-2004, 01:54 PM
  2. multiple vertex arrays
    By hugo4711 in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 02-02-2004, 10:27 AM
  3. One Vertex Array or Multiple Vertex Arrays ?
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-24-2003, 09:16 AM
  4. how to use vertex arrays with multiple normals per vertex ?
    By speedy gonzalez in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 11-18-2003, 10:09 AM
  5. Multiple Vertex Arrays...
    By Richelieu in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-17-2000, 07:10 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