Hi all, I was looking for some help on importing .obj files into a program using openGL. I’m writing a program that is supposed to take in a list of vertices and faces (in this case a cow lol ) and then display them properly on the screen. Unfortunately, I have no idea how to do that - it is supposed to handle any number of vertices and faces (in this case a few thousand) and I can’t find out in any of the books I have how to do it. Any help would be greatly appreciated Thanks a lot -
-james
p.s. - say, using
ifstream>>somechar
ifstream>>someint1>>someint2>>someint3
and so on till I have all the faces and vertices… then I have to know how to get through and display them and that, I don’t know -