Re: VBOs Do TexCoords align to indices or vertices?
Posted by
gouessej on
Oct 01, 2011; 9:34am
URL: https://forum.jogamp.org/VBOs-Do-TexCoords-align-to-indices-or-vertices-tp3384359p3384630.html
Hi
You need at least 24 vertices (4*6) or 36 vertices (6*6) if you don't use indices. The texture coordinates corresponds to the vertex coordinates. If you use several VBOs (one for the texture coordinates, another one for the vertex coordinates, another one for the normals, etc...), the second texture coordinate ([u,v] in 2D) matches with the second vertex coordinate ([x,y,z] in 3D). When you use an index buffer, a given index designates a vertex in all the bound buffers (texture, vertex, normal, color, fog, etc...). Best regards