如何将 3D 模型从 Cinema4D 导出到 Three.js?
如果我有一个在 Cinema 4D 中建模的网格,如何将其导出到 Three.js 3D JS 引擎?
此外,导出多边形选择的材质颜色也会很方便。
If I have a mesh modeled in Cinema 4D, how can I export it for the three.js 3D JS Engine ?
Also, it would be handy to export material colors for polygon selections.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
为此,我刚刚为 Cinema4D 编写了另一个 python 脚本。
您可以在 打扰媒体博客和wiki。
作为参考,我也在这里列出了源代码:
另外,将“slim”导出器添加到 存储库 应该生成更小的 .js 文件
对于模型
Just wrote another python script for Cinema4D for this.
You can find details on the disturb media blog and wiki.
For reference, I'm listing the source here too:
Also, added 'slim' exporters to the repository which should produce smaller .js files
for the models
另一种选择是导出为 COLLADA/DAE 或 OBJ 并使用 COLLADALoader 或OBJLoader。
Another option is to export as COLLADA/DAE or OBJ and use COLLADALoader or OBJLoader.
好吧,要在这里尝试一下:
此插件不适用于 C4D R12。由于Maxon吸收了Py4D,因此他们选择将符号对象吸收到c4d对象中。我分叉了你的 代码 并进行了一些探索,尝试修复 11.5 的 Py4D 之间的微小差异和R12。
不管怎样,这是你发表的插件咖啡馆帖子,我在其中发表了更多评论关于问题。再次感谢您为精彩铺平道路!
Alirght, going to Try this here:
This plugin does not work with C4D R12. Since Maxon absorbed Py4D, they made a choice to absorb the symbols object into the c4d object. I forked your code and poked around a bit to try and fix the minute differences between 11.5's Py4D and R12.
Anyways, here's the plugin cafe post you made where I commented a bit more regarding the issues. Thanks again for paving the way for awesomeness!
如果出现对象属性错误,则需要将
GetPos
调用与third.js
导出器脚本 (c4d13+) 中的GetAbsPos
交换。If you get an object attribute error, you need to exchange the
GetPos
call withGetAbsPos
in thethree.js
exporter script (c4d13+).