Results 1 to 7 of 7

Thread: Loading a model from a file

  1. #1
    Junior Member Newbie
    Join Date
    May 2006
    Posts
    3

    Loading a model from a file

    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?

    Thanks.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: Loading a model from a file

    lib3ds is what you're looking for.

  3. #3
    Junior Member Newbie
    Join Date
    May 2006
    Location
    Louisiana
    Posts
    12

    Re: Loading a model from a file

    what about md2/md3 files? Or is there no advantage to using these?

  4. #4
    Guest

    Re: Loading a model from a file

    i can't find any 3ds files with animation in them. do they exist? i tried 3dcafe and turbosquid.


  5. #5
    Guest

    Re: Loading a model from a file

    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!

  6. #6
    Guest

    Re: Loading a model from a file

    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?

  7. #7
    Guest

    Re: Loading a model from a file

    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

Similar Threads

  1. Loading model with multiple objects from .obj file
    By InquisitorAles in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-06-2017, 04:35 AM
  2. Replies: 1
    Last Post: 06-02-2006, 11:52 AM
  3. Loading a model from a file
    By N. Farr in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 05-15-2006, 03:24 PM
  4. loading RAW files / general model loading question
    By tcs in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 03-23-2000, 12:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean