OpenGL ES, .3ds or .obj loader

Discussion in 'iOS Programming' started by kikiiiii, Oct 3, 2008.

  1. kikiiiii macrumors newbie

    Joined:
    Oct 3, 2008
    #1
    Hi, i'm developping an opengl application for iphone, and i'm looking for a .3ds, or .obj loader which can load the models, and use animations.

    If someone know where i can find that :)

    Thank for helping me. (and sorry, my english is not verry good).
     
  2. SqueegyX macrumors regular

    Joined:
    Mar 24, 2008
    #2
    I solved this in a bizarre way. I wrote a ruby script to parse an .obj file and spit out the C code to load the vertex/normal/textureCoords of a model. Then I paste that into a class I have for loading and rendering models.

    It's working, but if I can figure out a parser for .obj dorectly in Obj c, that sure would make me happy.
     
  3. fat phil macrumors 6502

    Joined:
    Jul 11, 2008
    #3
    Start with Collada. It's a verbose XML format, and supports (almost) the entire scene graph, including models, materials (and textures), vert weights (for skinning), animation, cameras, lights etc.. Fast becoming the industry standard so you'll find a lot more information on using it than you will with OBJ and 3DS files (which don't contain animation data anyway).

    Max exporter: (DON'T USE THE AUTODESK FBX/DAE EXPORTER)
    http://www.feelingsoftware.com/content/view/65/79/lang,en/

    Community:
    www.collada.org

    Technical (Collada Home):
    http://www.khronos.org/collada/
     

Share This Page