View Full Version : Loading a model from a file

N. Farr
05-15-2006, 12:28 PM
Hello all,

I'm looking for a way to load a 3DS model from a file into OpenGL without having to use another layer (such as OpenSceneGraph or Inventor). Is there a way to do that with just OpenGL syntax?


05-15-2006, 02:16 PM
lib3ds is what you're looking for.

Jameson Quave
05-17-2006, 02:44 PM
what about md2/md3 files? Or is there no advantage to using these?

05-18-2006, 02:11 AM
i can't find any 3ds files with animation in them. do they exist? i tried 3dcafe and turbosquid.


05-18-2006, 02:24 AM
md2, md3 and md5 and so on are great if you want to use id's format, but you could write a custom 3ds exporter to generate your own format. it deosn't reallu matter - it's just skin and bones in the end.

i'm writing my own 3ds loader based on the spec and code at wotsit, but i can't find any animation files to test it with!

05-18-2006, 02:49 AM
btw, i wouldn't look at source code like lib3ds until you've given the spec at wotsit a good read. once you understand the lay of the land code'll be much, much easier to disseminate (in fact you won't really need it, except for a few gray areas).

did i mention that there aren't any 3ds animation files to be found?

05-18-2006, 02:55 AM
oh, i forget to mention that opengl can render 3ds model quite beautifully. put your mesh data into a VBO/IBO and off you go! child's play, really :)