I have created a loader to load in a wavefront obj file and then separate it into its respective parts.
So I have the v and vt read into their respective floats (and vn as well if its needed) however, I have no idea how to interpret the ‘f’ section, which would be faces.
Now the v and vt, once separated from the original .obj file that was read in, they are incrementally put into 2D arrays of floats and then put together in a model constructor.
Now what I’m stuck on is the f values, what are they, how do I interprit them, and how can read something like a/b a/b/c in.
I’ve looked online and some say its an index to an array? But I’m not too sure how or why, also I looked into the .obj file and the f section (face section) has negative values such as:
f -815/-4678 -816/-4679 -817/-4680
f -813/-4675 -814/-4676 -815/-4677
f -813/-4672 -815/-4673 -817/-4674
This is for a side project, programming on a preparatory platform in C
And yes, I am VERY new at this.