Click to See Complete Forum and Search --> : file.obj and opengl


maya1
April 22nd, 2009, 03:06 PM
Hello everyone!
I have problem with
import file. obj and save it informations in a data structure (using c++) and draw with opengl
for exemple
if we have
this file
http://people.sc.fsu.edu/~burkardt/data/obj/cube.obj
it must with the program c++ and opengl be
like this
http://people.sc.fsu.edu/~burkardt/data/obj/cube.png

Lindley
April 23rd, 2009, 01:18 PM
Since obj files simply store polygons, it's pretty much just a file parsing problem. Taking the OpenGL step (at least the easiest way of doing it) after that is pretty trivial.