PDA

View Full Version : The Best 3D Model Format For OpenGL ES



evening
01-16-2005, 07:52 PM
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

bentlegen
01-17-2005, 04:46 AM
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

miranda2112
04-19-2005, 03:45 PM
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

KristofBeets
04-20-2005, 03:53 AM
<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 (http://www.gamedev.net/community/forums/topic.asp?topic_id=312335)

Link 2 : Source Code link based on above discussion (http://inkarbon.com/jason/obj_src/)

Hope this helps,

K-

miranda2112
04-21-2005, 01:40 PM
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