vertex arrays and UV coords

Started by
2 comments, last by duckbob 22 years, 3 months ago
how do i enter UV coords for use with vertex arrays i have an array of xyz vertexes and 3 incdicies for each polygon, i want to use 2 uv coords, u & v... but do i need to enter them for each point or for each indicie when using vertex arrays? duckbob
Advertisement
Texture coordinates belongs to the vertex, which is pointed out by the index.

So, basically, assigning a texture coordinate to vertex or to an index, is more or less the same thing.
but when i create the list...say i have 8 vertexes and 24 indicies...a box...would i need to have 8 or 24 sets of uv coords?

8. The UV coordinates would be stored in the vertexes, not in the index buffers. Then when you''re rendering, you give an index and it uses the x/y/z and u/v for that vertex.
-----------------"I understand your concern. Request denied."

This topic is closed to new replies.

Advertisement