Results 1 to 7 of 7

Thread: Different types of Vertex Arrays

  1. #1
    Junior Member Newbie
    Join Date
    May 2009
    Posts
    5

    Different types of Vertex Arrays

    Hey guys, i got a theoretical exam of openGL on thursday. One of the questions might be:

    Which types of vertex arrays exist (name three of them)?

    I've done some research but i can't seem to find the answer to this question.

    Can anyone help me out plz

    Thanks in advance

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    374

    Re: Different types of Vertex Arrays

    This is a really strange question. I don't understand it at all. AFAIK there are only VA and CVA (compiled vertex arrays).
    Perhaps it is just (very) badly worded and they want to know about pre defined vertex attribute arrays specified by glXYZPointer functions (with XYZ != VertexAttrib) but this is only a (very) wild guess.

  3. #3
    Junior Member Newbie
    Join Date
    May 2009
    Posts
    5

    Re: Different types of Vertex Arrays

    Hmmm the question was in the list or my teacher uses the wrong terminology or there must be some kind of logical explanataion. Does anybody else got an idea what the answer could be please?

  4. #4
    Super Moderator Frequent Contributor imported_Groovounet's Avatar
    Join Date
    Jul 2004
    Posts
    937

    Re: Different types of Vertex Arrays

    It's a stupid question from a teacher that don't know how to program with OpenGL these days.

    Answer: Vertex, Normal, Color, Texcoord, etc...

    puff

  5. #5
    Junior Member Newbie
    Join Date
    May 2009
    Posts
    5

    Re: Different types of Vertex Arrays

    So to be sure, is it this what yo mean:
    GL_VERTEX_ARRAY
    GL_NORMAL_ARRAY
    GL_COLOR_ARRAY
    ...

    do you also know what the first three are used for?

  6. #6
    Senior Member Regular Contributor
    Join Date
    Mar 2007
    Location
    Latvia
    Posts
    225

    Re: Different types of Vertex Arrays

    You can read that in OpenGL specification: http://www.opengl.org/registry/doc/g...1.20061201.pdf (sections 2.7-2.8, page 20).

  7. #7
    Senior Member OpenGL Guru
    Join Date
    Oct 2004
    Posts
    4,661

    Re: Different types of Vertex Arrays

    Quote Originally Posted by Pacha
    Which types of vertex arrays exist (name three of them)?
    Poorly worded question. One type (classification) is described by the replies you've gotten thus far (vertex, normal, color0, texcoord0, etc.).

    Another type/classification is where the vertex arrays are stored:

    * client-side vertex arrays
    * server-side vertex arrays (i.e. VBOs)

    Another typ/classification is how the data is formatted in memory:

    * non-interleaved vertex arrays
    * interleaved vertex arrays

    However if the question states "name 3 of them" then the first classification is probably the one the teacher is thinking of.

Similar Threads

  1. arrays of arrays as vertex output/fragment input
    By tsojtsoj in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-17-2018, 08:02 PM
  2. Vertex Arrays, interleaved arrays, mouseMove func
    By Nibirue in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-13-2012, 11:17 AM
  3. Big problem show arrays with vertex arrays
    By Rondey in forum OpenGL: Basic Coding
    Replies: 13
    Last Post: 03-15-2009, 10:09 AM
  4. Vertex Arrays: Interleaved or seperated arrays?
    By Jan in forum OpenGL: Advanced Coding
    Replies: 16
    Last Post: 06-21-2005, 05:25 AM
  5. Interleaved (Vertex) Arrays with different types?
    By B_old in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 12-26-2002, 05:53 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