Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: glDrawElementsBaseVertex

  1. #1
    Junior Member Newbie
    Join Date
    May 2011
    Location
    Italy
    Posts
    22

    glDrawElementsBaseVertex

    Hello,

    this is my problem:

    i have n meshes stored in a vbo. The meshes have the same structure ( same number of vertices ). So i need only one array of indices and specify an offset for each mesh. glDrawElementsBaseVertex seems what i am looking for but i need to make a call for each mesh. Instead i want to make ONE call to render all meshes. I want a kind of instancing but not for rendering one mesh n times but for rendering n meshes with one index buffer with different per-instance offset.

    Is it possible?

    Thank you

  2. #2
    Member Regular Contributor
    Join Date
    Oct 2010
    Location
    France
    Posts
    458

  3. #3
    Junior Member Newbie
    Join Date
    May 2011
    Location
    Italy
    Posts
    22

    Re: glDrawElementsBaseVertex

    It works !

    Thank you

Posting Permissions

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