Results 1 to 2 of 2

Thread: Base question about indexed VBO arrays

  1. #1

    Base question about indexed VBO arrays

    If we only have the ability to use a single index array, how can both Vertices and UVs be indexed by it? Obviously sometimes a vertex would need to have multiple UVs associated with it (e.g. corner of a cube with different texture zones on each face would need three UVs).

  2. #2
    Junior Member
    Join Date
    Dec 2008
    Oslo, Norway

    Re: Base question about indexed VBO arrays

    You can't have an index per attribute, only per complete vertex (all vertex attributes), so in these cases you duplicate the vertex position.
    Erik "kusma" Faye-Lund

Similar Threads

  1. Take base address of Memory Object
    By zovasili in forum OpenCL
    Replies: 1
    Last Post: 01-19-2013, 11:21 AM
  2. using glDrawElements() with VBO
    By ManuelP in forum OpenGL ES
    Replies: 2
    Last Post: 05-10-2012, 12:15 AM

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