Hello, I am currently working on a small-scale OpenGL game demo. I would like to have some models in the game, and am looking for a format and program to make them in. Currently, my main model format options are ms3d (milkshape 3d), and md2 (quake2). I would like to avoid Milkshape3D because I hate the program! However, I have already found some very good sample code and libraries that can be used to read ms3d files (with armatures!). Is there an exporter to export blender meshes to ms3d (armatures must also be exported!)? If not, is there an exporter for other common game formats, such as the quake2, quake3, or half-life formats?
failing this, is there any other exporter for blender that can export a mesh and armatures into a format that would be easy to read in a program (text formats are preferable)?
…and if not, how hard would it be to write an exporter for my own format? all I really need in this file is basic mesh geometry (vertices, faces, normals) and armatures, and maybe UV mapping (not certain yet if I’ll need this. I might just use simple solid colours. the focus will be on the animation of the models).
Check out the Python forum here, there is a md2 exporter that works (I think)
At one time there was a Blender -> OpenGL C++ code that describes the model as well, but that was a while ago. I would go over the python script listings. Or search the forums.
" Blender -> OpenGL C++ "???
what was that? was it a feature in blender? don’t ever recall seeing. So yeah I saw the plugins. I also found example code to import md2 and md3. It looks to me like these formats have the poses and animations embedded in them. I had hoped for just a list of bone, and the vertices associated with them, and then animate them at will in my program. Is there a format that would be better suited to that, and with a blender exporter, possibly?
There used to be a python script that would take a model and generate C++ OpenGL code that would describe that model in-code.
As for bone stuff, md2 and md3 both do not contain bones in their format, at all, and python access to armatures is still new and not complete, so there won’t be anything for them for a little while.
Hmm…
I just looked again at the import/export plugin page, and saw that there is a plugin for cal3d. I looked at the cal3d page, and it looks promising. Has anyone used the blender–>cal3d exporter?