iPhone Open GL ES using FBX - How do I import animations from FBX into iPhone?

Posted by Dominic Tancredi on Game Development See other posts from Game Development or by Dominic Tancredi
Published on 2011-03-28T22:10:48Z Indexed on 2011/11/24 2:22 UTC
Read the original article Hit count: 564

Filed under:
|

I've been researching this extensively.

We have a game that's 90% complete, using custom game logic in iPhone 4.0. We've been asked to import a 3D model and have it animate when various events happen in the game.

I've put together an OpenGL view (based on Eagl and several examples), and used Blender to import the model, as well as Jeff LeMarche's script to export the .h file. After much trial, it worked, and I was able to show a rotating model (unskinned).

However, the 3d artist hadn't UV unwrapped the model, so provided me a new model, this one as a Maya file, along with animation in a FBX format, a .obj file, and .tga texture unwrapped.

My question is : how can I use FBX inside OpenGL ES inside iPhone to run through animations? And what's the pipeline to get this Maya file into Blender to be able to create a .h file. I've tried the obj2opengl however the model is missing normals (did it have it in the first place?) and the skin isn't applying at all (possibly a code issue, something I think I can fix).

I'm trying to use Jeff LeMarche's animation tutorial but can't figure out how to get the model files into a proper .h file for use.

Any advice?

© Game Development or respective owner

Related posts about iphone

Related posts about opengl-es