Results 1 to 5 of 5

Thread: The Best 3D Model Format For OpenGL ES

  1. #1
    Junior Member
    Join Date
    Sep 2004
    Location
    Hong Kong
    Posts
    13

    The Best 3D Model Format For OpenGL ES

    Hello! I had try to implement a MD2 loader for the OpenGL ES (in pocket pc and symbian). When I just render a keyframe of the 3D model the fps is OK for me. However, when I changed it to an animation. The fps is very low ... I guess it is because the interpolation calculate each vertex position between each frame, therefore the fps become lower when the 3D model is animated.

    So, I would like to know any other 3D Model Format can have better fps when it is doing an animation? Thank you.

    Evening

  2. #2

    Re: The Best 3D Model Format For OpenGL ES

    I don't believe any model format is any more "optimized" for rendering; really, once you've loaded the data from the file, it's all the same. The only exception being if a file format is pre-processed into sets of triangle strips or fans.

    - ben

  3. #3
    Junior Member
    Join Date
    Feb 2005
    Posts
    11

    Re: The Best 3D Model Format For OpenGL ES

    Hi,
    sorry to bring back an old topic...

    How did you go about writing the loader for your 3d file? I am trying to use a simple 3d model in my game, and at the moment I am using same sample code from Nokia which is in a .h file, and if I wanted to replicate it with my own model I would need to hand edit all the vertices, faces and normals, which would probably drive me insane!

    So basically I am asking if it is possible to write a file loader for the .obj file format and how I would go about doing that.

    Thanks,
    Miranda

  4. #4
    Junior Member
    Join Date
    Oct 2004
    Location
    UK
    Posts
    24

    Re: The Best 3D Model Format For OpenGL ES

    <BLOCKQUOTE><font size="1" face="Arial, Verdana, Helvetica, sans-serif">quote:</font><HR>So basically I am asking if it is possible to write a file loader for the .obj file format and how I would go about doing that.

    Thanks,
    Miranda<HR></BLOCKQUOTE>

    Check these links for some info on parsing obj files :

    Link 1 : Forum discussion on Obj loading

    Link 2 : Source Code link based on above discussion

    Hope this helps,

    K-

  5. #5
    Junior Member
    Join Date
    Feb 2005
    Posts
    11

    Re: The Best 3D Model Format For OpenGL ES

    Hi,
    thanks for those links, but I've done .obj file loading in "normal" C++ and OpenGL before, I'm just not sure how to do it with Symbian and OpenGL ES. For example, what do I use instead of ifstream? And how does it work with glDrawElements?
    Thanks,
    Miranda

Similar Threads

  1. What's the usage model of VG_BW_1 color format?
    By kelvin in forum OpenVG and VGU
    Replies: 1
    Last Post: 07-12-2007, 01:02 AM
  2. Best 3D model format
    By tellman in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 11-04-2004, 12:43 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
  •