How do I sort the texture positions based on the texture indices given in a Wavefront (.obj) file?
If there are different indexes for vertex coordinates and texture coordinates, then the vertex positions must be “duplicated”. The vertex coordinate and its attributes (like texture coordinate) form a tuple. Each vertex coordinate must have its own texture coordinates and attributes. You can think of a 3D vertex coordinate and a 2D texture coordinate as … Read more