• Advertisement

Archived

This topic is now archived and is closed to further replies.

vertex arrays and UV coords

This topic is 5857 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement