Importing Models Into A OpenGL Project

bobber205 picture bobber205 · Jan 7, 2010 · Viewed 19.7k times · Source

I am taking an OpenGL course and we have the option to create models to use in our assignments with a 3D modeling application, like Maya or Blender.

I am not looking forward to typing in coordinates manually so I was curious what resources I should be looking into for writing OpenGL code and importing models. (Textures are coming later). I am also concerned by the scale I'm importing at but maybe that's silly to worry about at this point.

Thanks for any resource suggestions. OpenGL has so much out there I get overwhelmed sometimes when Googling for what I need.

EDIT: This is what I ended up using. http://www.spacesimulator.net/tut4_3dsloader.html I downloaded the "Windows" version and with a few path changes to the includes, got up and running. It doesn't handle OBJ files but rather 3DS. Cheetah 3D exports to this type as well.

Answer

Tarydon picture Tarydon · Jan 7, 2010

Blender can save files in .obj format, and a simple google search turns up several libraries for loading this into OpenGL. Here is one.