View Full Version : OBJ to OPENGL C convertor

11-24-2002, 10:03 AM

As the more keen among you may derive from the topic I'm looking for a utility that converts the Alias|Wavefront *.obj format to OpenGL C code, for Windows preferably.
Although the *.obj format is quite raw, it's still a pain to parse out and convert all the polygonal and NURBS data and texture diffuse etc map references to optimizable openGL code.
I know the app 'PolyTrans' does exactly what I want, but sadly I am not quite that wealthy.

Thanks in advance for any help,


11-25-2002, 07:05 PM
Ive developed some classes so that all u have to specify is the filename and call a few functions and the object is rendered. It works for verticies, normals, and textures. But you dont have to have all of them. Its in c++ though so i dont know if thats what you want.

11-25-2002, 09:15 PM
I'v been siting on this too & I've made an importer. But there is a problem im getting pointers with data from function, integers with indices count, but draw elements doesn't work http://www.opengl.org/discussion_boards/ubb/frown.gif. Pointers are Ok & indices also I've checked that out http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/010769.html