• Advertisement
Sign in to follow this  

Indexing geometry with texture array?

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

Hi, i've got trap by a problem that seem unsolvable. In my game, i'm using vertex array, texcoord array, and normal array and, if possible, i put them in the VBO. the problem is, when i come to trying indexing geometrie(like using 8 vertex instead of 36 for a cube), i've remarked then me texcoord array cannot be indexed tthis way. Did there is any way of solving this???

Share this post


Link to post
Share on other sites
Advertisement
I assume the problem you have is that each vertex needs a different set of texture coords on each face?
If you need a vextex with two texture coords in teh same place then you have to duplicate the vertex to do this, so you can still index but you'll still need 36 vertices.

Keep in mind, that on normal objects you wont have this problem, very few vertices will be shared in this way.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement