Archived

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

Index buffers and sprite maps

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

If I build 4 quads and want to have texture coordinates {0,0,spritesize,spritesize} for the 1:st quad and {spritesize, 0,spritesize,spritesize} for the 2:nd quad how can I accomplice this with a vertex buffer with only 9 vertices and a index buffer with 24 indices? Vertex 0 and 1 for example (look at picture) share the same texture coordinates! Is it possible to have a index buffer with unique points but also have control over the texture coordinates and have the possiblity to pick sertain "areas" from a texture and map it to sertain vertices? v7 . v8 . v9 . . v4 . v5 . v6 . . v0 . v1 . v3 Thanks, Borion Breck. [edited by - Borion on June 25, 2002 2:19:56 PM] [edited by - Borion on June 25, 2002 2:21:16 PM]

Share this post


Link to post
Share on other sites