How does one export a 3D Studio animated model to OBJ format (if possible)? What will be the resulting file like? How would I read that?
No, .obj
files do not support animation.
You can check the .obj
specification for details of what it does support.
You could potentially export one .obj
per frame, but that would be cumbersome. Depending on the tools, it may be possible to export one .obj
per keyframe.
.obj
format. Any static image format can be used as an animated format with one file per frame, or anything that you could do interpolation with could use one file per keyframe; but just because you can animate a directory full of static JPEGs doesn't mean that JPEG supports animation. –
Lodged Blender 2.63 can export animations in .obj, with each keyframe (as hypothesized above) being a complete .obj of it's own. Blender can handle this export func relatively quickly and efficiently. So 1, Blender is an excellent working proof of concept, and two, Blender may actually help you out code wise (it's open source and you can redistribute any edited code source), allowing you to completely bypass writing your own efficient, quick support for this operation.
Although the .obj specification doesnt support animations natively, by simply augmenting it with a seperate .anm file you can get brilliant albeit boneless animations.
Have a look at:- http://public.sanguinelabs.co.uk/expose/product.php?id=wastudio
This provides a very easy to use "animation maker" as well as the open-source model library (for OpenGL).
Note: I am the developer of Wavefront Animation Studio but also use it heavily in my own projects. Feel free to email me if you have any improvements or bugs to report :)
In fact you can animate wavefront format objects, you have to use groups within your model and transform them seperately in your code.
.obj files do not support storing animations by default. However, you can export an animated mesh as a sequence of .obj files using Blender 3D. (The .obj exporter contains a relevant option...) If you want to view an animation sequence as .obj files, you can use the following program that is written OpenGL and python:
https://github.com/csmailis/ObjSequenceViewer
If you use it, make sure you specify the directory containing all the .obj files stored with sequential filenames.
© 2022 - 2024 — McMap. All rights reserved.