Results 1 to 3 of 3

Thread: Import an object from 3dsmax

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2001
    Location
    Sweden
    Posts
    1

    Import an object from 3dsmax

    Hi!

    I would like to import an object from 3dsmax to my world in C++/OpenGL. How can I do this? It would really help with sample code.

    Thanks...

  2. #2
    Member Newbie
    Join Date
    Oct 2001
    Posts
    39

    Re: Import an object from 3dsmax

    My understanding is that you must save the object as a 3DS file. The format of the ,max files is proprietary and changes with each version of 3D Studio.

    There are several 3DS file readers on the net. lib3DS (www.sourceforge.com) is frequently used. I prefer the 3DSFTK. You can find a link to the 3DSFTK on my links page (http://members.home.net/scottheiman/links.htm).

    Rendering an object is quite simple once you have read the data. A 3DS object is simply a collection of meshes. Each mesh defines a group of triangles that uses a common material and one or more textures.

    The primary problem with 3DS files is that you must calculate the normal vectors for each triangle. Some 3DS files do not use a common winding convention that can be used to determine the direction of the normal vector. I have seen files that have 2 adjacent triangles facing opposite directions. I have seen several examples on the net that use lib3DS and the 3DSFTK to read and render 3DS files, but none of them have shown me how to resolve the winding problem.

    Regards,
    Scott
    Regards,
    Scott

  3. #3
    Senior Member Regular Contributor
    Join Date
    Jul 2001
    Posts
    352

    Re: Import an object from 3dsmax

    There are also ASE files. They are ASCII, so they are much bigger than 3DS files, resulting in longer loading time, but they are very easy to understand.

Similar Threads

  1. Can't import Blender object
    By alkan0id in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-20-2014, 04:09 PM
  2. <library_lights> - 3DsMax
    By md.stage in forum COLLADA
    Replies: 3
    Last Post: 04-28-2008, 11:57 AM
  3. 3dsMax Loader?
    By johnsss in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 02-11-2004, 11:08 AM
  4. 3DSMAX & 3Dexploration
    By Bahamut_france in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 03-12-2001, 09:15 PM
  5. How can 3dsmax use more than 8 lights?
    By jfly in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-05-2000, 01:30 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