PDA

View Full Version : VBO organizing ?



Meanz
01-09-2012, 07:00 AM
Well hello there,

I have a VertexBufferObject, and I also have 4 different arrays.
The four different arrays are
Vertices
TexCoords
Normals
Colors

My problem is that I want to store them like this in the vbo.

Vertex
Vertex
Vertex
Vertex
..
TexCoord
TexCoord
TexCoord
TexCoord
..
Normal
Normal
Normal....

You get my drift, I basically want to sort them by type and not like previously taught

VNT, VNT, VNT

Is this even possible, I haven't gotten much useful out of the documentation. Might be me just beeing flimsy.

Because I really don't want to sort them manually into VNT's.

V-man
01-09-2012, 07:42 AM
Yes, you can store them in different VBOs if you want
http://www.opengl.org/wiki/VBO_-_more#Vertex.2C_normals.2C_texcoords

Meanz
01-09-2012, 08:12 AM
Just what I was looking for, thank you =]