Closed manthanabc closed 3 years ago
You're correct, right now tobj doesn't provide a way to get separate indices of position/normal/texcoord per-face. I've been thinking to add an option to get the loaded mesh data back in a multi-indexed layout, similar to what tinyobjloader provides now: https://github.com/tinyobjloader/tinyobjloader#data-format . Then you'd have a list with different position/normal/texcoord indices per vertex, and tobj would still provide a mode that can flatten it down to a single indexed layout.
My multi_index
branch has support for this.
Build the docs for that branch for more information.
Now released in 3.0.0
there seem no way to get the sequence of tex-cordinates used . like for example consider this obj file
here we can get the indices for sequence in which the vertices are used but i cannot find a way to get indices of tex cordinates . i might just be missing something .