简体   繁体   English

三JS中的Cinema 4D动画

[英]Cinema 4D animations in Three JS

I've been trying to set up a decent workflow for Cinema 4D and Three JS. 我一直在努力为Cinema 4D和Three JS建立一个像样的工作流程。 The problem is with animations. 问题在于动画。 So while I do get the models to load in .obj and .dae, animations are not working. 因此,虽然我确实将模型加载到.obj和.dae中,但动画不起作用。 I understand there are some limitations to how Cinema exports the file and how Three understands them. 我知道Cinema如何导出文件以及Three如何理解它们有一些限制。

I've also tried to include Blender into the workflow, but it unfortunately distorts the animations, and for some reason does not output working .json when I've imported them from a Cinema project. 我还尝试将Blender包含在工作流程中,但遗憾的是它会扭曲动画,并且由于某种原因,当我从Cinema项目导入它们时,它不会输出工作.json。

Anyone here who figured this one out? 谁在这里想出这个? Many thanks. 非常感谢。

So I managed to get simple PSR-animations working without having to touch Blender, using this Collada converter: 所以我设法让简单的PSR动画无需触摸Blender就可以使用这个Collada转换器:

http://rmx.github.io/collada-converter/preview/examples/convert.html http://rmx.github.io/collada-converter/preview/examples/convert.html

You'll also have to modify the xml tags in the file: 您还必须修改文件中的xml标记:

https://superuser.com/questions/148024/how-to-import-mesh-animation-from-cinema4d-into-blender https://superuser.com/questions/148024/how-to-import-mesh-animation-from-cinema4d-into-blender

Unfortunately it does not seem to handle morphs. 不幸的是它似乎没有处理变形。 For that I had to resort to Blender, where I created the model in C4D, imported it in Blender, baked it, then exported it as .json. 为此,我不得不求助于Blender,我在C4D中创建模型,将其导入Blender,烘焙它,然后将其导出为.json。

I would be very happy if this could be a little bit more simple! 如果这可能更简单一点,我会很高兴的! : ) :)

您可以尝试我的Cinema 4D插件: https//github.com/BlackDice/Cinema4D-Threejs-Exporter

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM