• Advertisement

Archived

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

Vertex Arrays + Texture's problem

This topic is 5943 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

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

Share this post


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

Share this post


Link to post
Share on other sites
Like this?

also do i need to do owt to make it tile? caus wont it strech otherwise?

Ill have a go tommorow and implement it



(creator of diagram wishes to remain anonymous)

Thanks

Share this post


Link to post
Share on other sites

  • Advertisement