Jump to content

  • Log In with Google      Sign In   
  • Create Account

vertex arrays and UV coords


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 duckbob   Members   -  Reputation: 122

Like
Likes
Like

Posted 06 January 2002 - 02:27 PM

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

Sponsor:

#2 Brother Bob   Moderators   -  Reputation: 8201

Like
Likes
Like

Posted 06 January 2002 - 11:55 PM

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.

#3 duckbob   Members   -  Reputation: 122

Like
Likes
Like

Posted 07 January 2002 - 11:09 AM

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?



#4 seregsarn   Members   -  Reputation: 122

Like
Likes
Like

Posted 07 January 2002 - 03:26 PM

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS