tags:

views:

644

answers:

2

Hi,

I'd like to import objects I create in Cheetah 3D to my open GL iphone app. Can someone show me how this can be done? I can export my objects as any number of file formats, but I'm thinking obj is the correct one. What do I need to do to render this in my opengl canvas?

Thanks, I am a total n00b when it comes loading things from an external file!

+1  A: 

While I've not done any GLE work specifically, I can tell you at least that obj is the most portable and widely used format in general.

FBX (Filmbox) is a relatively new and interesting format that seems to be gaining some traction, but you'll find that obj will suit most of your needs.

OpenGL has no native support for reading 3d file formats - you'll need to use a library like GLUT that can convert that data in the obj to an OpenGL primitive.

Download GLUT and find progs/demos/smooth/glm.c which provides methods for parsing objs.

Bayard Randel
A: 

Have a look at this SO question Want to display a 3D model on the iPhone: how to get started?

epatel