PDA

View Full Version : Element Buffer Object confusion.



Meanz
11-29-2012, 09:16 PM
Hey there, so I have been searching a while on the great interwebs.
Yet I haven't found my solution.


The problem is that I have three arrays of data, a buffer of vertices, a buffer of normals and buffer of tex coords.
I also have a list for indexing each buffer.


The index list looks like this

0 1 4 5 9 1
Where the first 0 represents the vertex, the first 1 represents the normal and the first 4 represents the tex coord.
So my question becomes how can I implement something like this with a IBO ?

Alfonse Reinheart
11-29-2012, 10:05 PM
See this. (http://stackoverflow.com/questions/11148567/rendering-meshes-with-multiple-indices) Or this on the Wiki. (http://www.opengl.org/wiki/FAQ#Multi_indexed_rendering)

Short answer: you don't.

Meanz
11-30-2012, 03:02 AM
Thank you for the quick response.
Your answer was what I feared though.