Quote:
Originally Posted by adil
Hello iPhone developers!
I'm planning on building an FPS in Xcode. I want to build the models and animate them on blender, and export them to Xcode for some OpenGL development. I don't really want a game engine as they are a bit expensive and I just learnt objective c, and don't really want to learn something else. So my question is: how do I export blender models, WITH ANIMATIONS, to xcode for use in building my OpenGL app?
Sorry, I'm an iOS developing newbie.
|
A newbie to Obj C / iPhone? Or a newbie to programming in general? How much experience do you have with OpenGL on other platforms?
A Google search for "blender opengl es" shows quite a few scripts that can convert a wavefront object into a C/C++ array, and Blender can save out as wavefront. I'd probably whip something up to put it into some sort of resource file (no point in recompiling every time you change the visuals on your model), but at the very least you can start there.
For that matter, Blender is open source. You could figure out how the vertices were stored and pull them straight from the Blender file itself.
Animations: uh ... no (
AFAIK). You could always render it as a movie and play it, I suppose. Otherwise just code out what you did in Blender (move this here, that there, rotate, move camera, turn camera, etc.). There are commercial packages that let you define you kinematics, constraints, etc. and export as data files to a library you can run with in your code. I don't have that kind of dough, so other than trying Autodesk I wouldn't know where to start ...