Using multiple indexes with buffer objects in OpenTK

Posted by Rushyo on Game Development See other posts from Game Development or by Rushyo
Published on 2011-06-19T11:10:05Z Indexed on 2011/06/20 16:40 UTC
Read the original article Hit count: 314

Filed under:
|
|

I've got multiple buffers in OpenGL holding data on position, normals and texcoords.

I also have an equal number of buffers holding distinct index data for each of those buffers.

I quite like this format (indvidual indexes for each buffer) utilised by COLLADA since it strikes me as optimally efficient at accessing each buffer.

I've set up pointers to the relevant data arrays using VertexPointer, NormalPointer, etc however I have no way to assign pointers to the index buffers since DrawElements appear to only look at one ElementArrayBuffer.

Can I utilise multiple indices some way or will I be better off using a different technique which can support this? I'd prefer to keep the distinct indices if at all possible.

© Game Development or respective owner

Related posts about opengl

Related posts about opentk