Including Wavefront Object in C++

6 views
Skip to first unread message

komplikaded

unread,
Jul 3, 2010, 7:16:21 PM7/3/10
to PSUComputerGraphics
I'm using Blender for at least a little bit of my project in order to
create an object. I export the object to a wavefront object, which is
basically a plain text file. Is there a way in OpenGL to include the
wavefront object?

Abdelhalim Ragab

unread,
Jul 4, 2010, 1:06:50 AM7/4/10
to psucomput...@googlegroups.com
There are more than one way to do that, 

- Use a library to load OBJ models dynamically at runtime, Quick googling resulted this one:

Most probably there are other implementation that does this in several languages.

- The other way is to convert the OBJ model to vertices in a C header file, but in this case you have to pre-convert the model before compiling your application. This might be helpful if you have limited models and you don't want to load arbitrary model at run time.
Here is a link to a script that does this.

Note that I haven't tested those specifically, so I cannot help if they didn't work as advertised.


I'm curious why you selected the OBJ format specifically? 

..Abdelhalim



--
You received this message because you are subscribed to the Google Groups "PSUComputerGraphics" group.
To post to this group, send email to psucomput...@googlegroups.com.
To unsubscribe from this group, send email to psucomputergrap...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/psucomputergraphics?hl=en.


Reply all
Reply to author
Forward
0 new messages