Hi,
first of all “Nice to join the forum” and “Happy new year to everybody”.
Now, I have a question: can I use two different index-arrays to avoid repeating same data in vertices ?
Going deeper, a little example.
I have a VBO with couples of vertices. Each couple has the same color so I don’t want a layout like this:
vbo -> xA,yA,zA,rA,gA,bA,xB,yB,zB,rA,gA,bA,...,...,...
or two different vbo like these:
vboVertices -> xA,yA,zA,xB,yB,zB,...,...,...
vboColors -> rA,gA,bA,rA,gA,bA,...,...,...
I would like to have something like this:
vboVertices -> xA,yA,zA,xB,yB,zB,...,...,...
vboColors -> rA,gA,bA,...,...,...
and arrays of indices these:
vboVertices_i -> 0,1,...,...,...
vboColors_i -> 0,0,...,...,...
so I can match one color to two different vertices.
Is it possible ? or maybe it’s not as fast as repeating colors…
I was searching in the forum but I think this is the fastest way to find an answer.
Thanks to all.
Cheers
Paolo