Vertex Arrays + Texture's problem
I have found that when using Vertex arrays as i can only specify ONE texture coordinate per vertex, and so i get the wrong texture edges joining together (actual effect) where before when using glBegin-glEnd you could specify diffent texture coordinates at every vertex (desired effect) and they tiled nicely.
Is there anyway i can still achive this using vertex arrays?
Thanks
Edited by - Marvin on October 12, 2001 3:29:02 PM
Hi,
You can only specify one texture coordinate set per texture per vertex - it's just the way the cards work.
You can get around this by either repeating the texture coordinates so the texture tiles, or creating 2 vertices with the same position, but different texture coordinates.
Hope this helps,
- Pete
EDIT:
I wasn't very clear about "repeating" the texture coords.
What I mean is you specify texture coordinates greater than (1,1), and the texture will tile accordingly by wrapping round on itself.
Edited by - siaspete on October 12, 2001 3:43:26 PM
You can only specify one texture coordinate set per texture per vertex - it's just the way the cards work.
You can get around this by either repeating the texture coordinates so the texture tiles, or creating 2 vertices with the same position, but different texture coordinates.
Hope this helps,
- Pete
EDIT:
I wasn't very clear about "repeating" the texture coords.
What I mean is you specify texture coordinates greater than (1,1), and the texture will tile accordingly by wrapping round on itself.
Edited by - siaspete on October 12, 2001 3:43:26 PM
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement