Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 down vote accepted

It is easy to load 3ds files using:

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.

share|improve this answer
This is what i ended up doing, so i'll accept it as the answer haha. – Dfowj Dec 10 '10 at 18:13

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

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.

share|improve this answer
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: It's well documented.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.