Results 1 to 10 of 10

Thread: Open formats for models

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2006
    Posts
    15

    Open formats for models

    Hi, is there an open fileformat for models.

    My designers are supplying me 3ds files all the time. But I am not sure how to read those files from my programming code. Is there a way to convert those files to XML files or some other open format? Or better is there a way to export from 3D Studio Max to some open format?

    Thank you in advanced
    Greetings !

  2. #2
    Member Contributor
    Join Date
    Jun 2006
    Posts
    97

    Re: Open formats for models

    What does this have to do with OpenGL?

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2006
    Posts
    5

    Re: Open formats for models

    Hi,
    3D Studio Max can export in VRML97

  4. #4
    Junior Member Newbie
    Join Date
    Jun 2006
    Posts
    15

    Re: Open formats for models

    s03, I figured there would be somebody here that knew the answer, since it is an unavoidable problem. (Also it could have been possible that opengl supported some format, like directx supports .x files.)

    Thank you for your help twxs. I really appreciate it!
    Greetings !

  5. #5
    Junior Member Newbie
    Join Date
    Mar 2006
    Posts
    2

    Re: Open formats for models

    For open file format, I suggest you use COLLADA. It is done by khronos group. Also, look into FBX SDK provided by AutoDesk, it supports few popular file formats including 3ds and COLLADA. 3Ds is very widely used format and COLLADA is open standard format. FBX is free and platform independent.

    Info on FBX http://usa.autodesk.com/adsk/servlet...&siteID=123112
    Info on COLLADA http://www.khronos.org/collada/

  6. #6
    Member Contributor
    Join Date
    Jun 2006
    Posts
    97

    Re: Open formats for models

    Or better is there a way to export from 3D Studio Max to some open format?
    You can write a custom exporter and save in any format you like. Visit their website and look for the developer tools/SDKs.

    Collada defines a base schema that facilitates asset transport in complex tool chains, like those used in OpenGL|ES PS3 development, though it could be used for anything you like. Khronos has it's own website and forum for this stuff.

    OpenGL itself provides no file formats of any kind.

  7. #7
    Junior Member Newbie
    Join Date
    May 2005
    Location
    Beijing China
    Posts
    21

    Re: Open formats for models

    Hi,
    if you export into VRML97, you will get a wrl file which perhaps lost some information such as animation.
    Glad to discuss here!

  8. #8
    Junior Member Newbie
    Join Date
    Nov 2004
    Posts
    10

    Re: Open formats for models

    Hi,

    Collada is a great open model format. If you're using C++, you can use the Collada DOM lib that makes things easier when handling XML files.

    About 3DS, Collada does have some importers/exporters in its forum ( Collada 3DS Importer/Exporters ). There are some plugins for other 3D modelers too (like Blender or Maya).

    Hernan

  9. #9
    Junior Member Newbie
    Join Date
    Jun 2006
    Posts
    15

    Re: Open formats for models

    Thank you for all the information.

    Collada sounds like a great format but I figured it is probably a bit too advanced for what I want to do. After all, the point is that I have to write some code to read those files.

    Seems like X3D has a lot of crazy properties too and I don't like the structure that much at all. But not to lose much more time I started to write X3D support. But the more I worked on it the more I realized how confusing the structure of this format is.

    I was actually looking for something simple that looks more like:

    OBJECT name="this is a car">
    SHAPE name="this is a couple of lines">
    TEXTURE SomeInformationGoesHere/>
    POLYGON drawingmethod="GLTRIANGLES">
    POINT x="2" y="5" z="10"/>
    POINT x="10" y="1" z="2"/>
    POINT x="1" y="4" z="3"/>
    /POLYGON>
    ...some more polygons
    /SHAPE>
    ...some more shapes
    /OBJECT>

    So now I am going to throw out that X3D stuff and going to look up some information to write an exporter for 3D Studio Max. Hopefully this can be written in C#. Allthough I guess it will be in C++ again. It's a C++ world we are living in .
    Greetings !

  10. #10
    Senior Member Frequent Contributor
    Join Date
    Aug 2001
    Location
    Italy
    Posts
    625

    Re: Open formats for models

    I would suggest against VRML. Sometimes, the conversion isn't correct, sometimes there are some differences... you almost NEVER get back what you put in.

    I did some tests with VRML (not sure of the version) two years ago and it didn't cut it for me. If you're lucky it may do the job. Good for you.
    Consider however COLLADA is the final solution. If you get it working (at least sufficiently well) you'll never have this issue again. Wow!

    PS: remember it's an exchange format, do not use it for final assets, this would suck so badly!

Similar Threads

  1. Need help with 3D models: recomended formats?
    By MrUNOwen in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 11-03-2010, 10:46 AM
  2. Nice models and free models,new site!
    By 3d4ya in forum COLLADA
    Replies: 0
    Last Post: 09-24-2008, 02:04 AM
  3. Exporting 3D models from 3D max to open GL program
    By jubeim in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 09-03-2001, 09:08 AM
  4. HELP! loading anim8or models!! (or ANY models)
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-07-2001, 03:00 PM
  5. 3D Models for Sale DirectX and Open GL.
    By in forum OpenGL: User Software
    Replies: 1
    Last Post: 05-24-2001, 05:26 AM

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