PDA

View Full Version : .obj File Import



JimmyFo
09-23-2004, 05:20 PM
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 -

raoulduke
09-23-2004, 11:36 PM
JimmyFo, you might wanna look at
http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg4.htm

greetz

mikael_aronsson
09-24-2004, 01:04 AM
Hi !

www.wotsit.org (http://www.wotsit.org) has lots of information on almost all kinds of file formats.

Mikael

JimmyFo
09-24-2004, 04:37 AM
Thanks a lot you two, I'm looking over those now -

have a good one -

-james