Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: .3ds and .obj file

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2004
    Posts
    9

    .3ds and .obj file

    How do I import a 3ds file into opengl ?
    I know I have to use a 3ds loader,but I have no
    idea about how to do it.
    Is .obj file aslo a kind of 3D graphic file?
    Could I just use .obj file in opengl with some opengl function?

    Anyway,I just wanna know how to construct a 3D
    object in opengl.(or download it form net) I know I could use polygons to construct,but I don't think it's an easy way.

    Thanks for any help and suggestion!!

  2. #2
    Junior Member Newbie
    Join Date
    Oct 2002
    Location
    Atlanta
    Posts
    20

    Re: .3ds and .obj file

    I use a 3DS loader that I found on the net. Basically the loader opens the .3ds file, reads the contents, and stores it in memory. Then I call the drawing function included in the loader to render to the screen.

    The render function just uses normal gl functions, like glColor3f() and glVertex3f().

    I don't think you'll find anything related to loading models included in OpenGL itself.

  3. #3

  4. #4
    Intern Contributor
    Join Date
    Oct 2004
    Location
    Thailand
    Posts
    83

    Re: .3ds and .obj file

    Why you not use Export file form ASE or VRML to controller model.
    Put AI system into human robot.

  5. #5
    Junior Member Newbie
    Join Date
    Oct 2004
    Posts
    9

    Re: .3ds and .obj file

    When I use the 3ds file loader (downloaded from
    http://www.gametutorials.com/Tutoria...OpenGL_Pg4.htm )
    to import some 3ds file,it shows the following
    window message:
    Failed to open DIB file CARPET2.TGA.

    What does that mean? Can anyone help? Thanks!!

  6. #6
    Advanced Member Frequent Contributor
    Join Date
    Feb 2004
    Location
    Long Island, New York
    Posts
    586

    Re: .3ds and .obj file

    shot in the dark: it can't find the file?

  7. #7
    Junior Member Regular Contributor
    Join Date
    Aug 2004
    Location
    Angers, France
    Posts
    248

    Re: .3ds and .obj file

    hm, it can't load a .tga file, not a .3ds file, are you sure the file you want to load is in 3ds format ?

    TGA's format usually used with textures, maybe a problem to load the texture of your 3D object
    The .Product will make you .Believe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •