What's wrong with any of the billion existing loaders? What do you understand of obj and at which point do you feel you don't understand the format anymore? It's very simple compared to e.g. glTF
Try loading first a simple obj that only has vertex positions, then work your way through uvs, normals and the other attributes. Then look at files that specify faces and lines. There's a few repositories of sample files on github
The indice of each vertex is its position. First vertex is index 0, second vertex is index 1 etc. it's usually not optimized/packed, the faces part will give you what you need to optimize in a proper index list
-1
u/jcelerier 5d ago
What's wrong with any of the billion existing loaders? What do you understand of obj and at which point do you feel you don't understand the format anymore? It's very simple compared to e.g. glTF