Wavefront .obj 文件支持动画吗?
如何将 3D Studio 动画模型导出为 OBJ 格式(如果可能)? 结果文件会是什么样子? 我该怎么读呢?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
不,
.obj
文件不支持动画。您可以查看
.obj
规范,了解其支持的详细信息。您可以每帧导出一个
.obj
,但这会很麻烦。 根据工具的不同,可以为每个关键帧导出一个.obj
。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.Blender 2.63 可以导出 .obj 格式的动画,每个关键帧(如上面假设的)
是它自己的一个完整的.obj。 Blender 可以相对快速有效地处理此导出功能。 因此,第一,Blender 是一个出色的概念证明,第二,Blender 实际上可以帮助您明智地编写代码(它是开源的,您可以重新分发任何编辑过的代码源),使您完全无需编写自己的高效、快速的支持这个操作。
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.
尽管 .obj 规范本身不支持动画,但只需使用单独的 .anm 文件对其进行增强,您就可以获得出色的无骨动画。
看一下:-
http://public.sanguinelabs.co.uk/expose/product.php ?id=wastudio
这提供了一个非常易于使用的“动画制作器”以及开源模型库(针对 OpenGL)。
注意:我是 Wavefront Animation Studio 的开发人员,但也在我自己的项目中大量使用它。 如果您有任何改进或错误要报告,请随时给我发电子邮件:)
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 文件默认不支持存储动画。
但是,您可以使用 Blender 3D 将动画网格导出为一系列 .obj 文件。 (.obj 导出器包含相关选项...)
如果您想以 .obj 文件形式查看动画序列,可以使用以下由 OpenGL 和 python 编写的程序:
https://github.com/csmailis/ObjSequenceViewer
如果您使用它,请确保指定包含以顺序文件名存储的所有 .obj 文件的目录。
.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.