Hey guys, im working on a final class project for a graphics class, and me and a teammate are making a simple 3d tower defense game.

We're currently planning on using 3ds models and drawing them with OpenGL.However, niether of us have a lot of practice/experience with loading/drawing models.

What is the fastest and/or easiest (not neccesarily the best or most feature-implemented) way to load a 3ds model and draw it with a OpenGL/glut setup?

It also comes with a OpenGL sample.

But I think it is better to use another format, 3ds materials name limitation are a real pain.

The easiest way will be load obj files, like so(files you are interested in -> glm.h/cpp):

http://www.xmission.com/~nate/smooth.html

It comes with examples.

I personally feel, that if you are learning, you should make one yourself. Not as feature filled as above, but a simple obj loader that reads vertices/normals/texture co-ords and perhaps the material as well.

It will take you a few hours at most to figure this out (speaking from experience - when I didn't have experience :). This will make you understand the guts of all loaders and their possible limitations. You can then switch to more feature filled loaders while at the same time knowing what is going on behind the scenes so that it does not seem like magic anymore.

• It depends on the OP's idea. If he's trying to learn how to do this, then sure. If his interest is to ship a working program, then it's much easier to use an existing one. – The Communist Duck Dec 9 '10 at 16:34

I have good experience with AssImp. Have a look: http://assimp.sourceforge.net/ It's well documented.