After watching this tutorial by the coding universe (
">), I am confused as to what face data (denoted by an f at the start of the line) in a .obj file is, and how it is supposed to be used.
As an exercise to try and find this out for myself, I experimented and wrote a parser for an obj file in java, that only loaded the vertex and normal data from the Stanford bunny model. I rendered it using glDrawArrays, but it came out contorted, with lines connecting triangles that shouldn't be connected.
It looked like this:
You can just see the basic shape of the bunny under all the stuff that isn't meant to be there.
Do I need the face data to render the model ? Can you do it without it ? If so how do you use it and what does it mean ?