Blender 导出了一个 Three.js 动画——骨骼奇怪地旋转 [英] Blender exports a three.js animation - bones rotate strangely

查看:79
本文介绍了Blender 导出了一个 Three.js 动画——骨骼奇怪地旋转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试使用three.js的导出器将动画搅拌机模型导出到three.js (github.com/mrdoob/three.js/tree/dev/utils/exporters/blender/2.66/scripts/插件).

I'm currently trying to export an animated blender model to three.js using the exporter of three.js (github.com/mrdoob/three.js/tree/dev/utils/exporters/blender/2.66/scripts/addons).

我创建了一个包含骨骼和权重以及一个小动画的模型.

I've created a model including bones and weights and a tiny animation.

我遇到的问题:模型坏了.不知何故,骨骼不会围绕它们的原点旋转,而是围绕根骨骼的原点旋转.手动移动骨骼没有任何区别.

The problem I have: The model gets broken. Somehow the bones don't rotate around their origin but around the origin of the root bone. Moving the bones manually does not make a difference.

我遵循了这些教程:devmatrix.wordpress.com/2013/02/27/creating-skeletal-animation-in-blender-and-exporting-it-to-three-js/

I followed these tutorials: devmatrix.wordpress.com/2013/02/27/creating-skeletal-animation-in-blender-and-exporting-it-to-three-js/

dev.mothteeth.com/2012/10/threejs-blender-exporting-skeletal-animations/

dev.mothteeth.com/2012/10/threejs-blender-exporting-skeletal-animations/

我有:删除了骨架

检查顶点组

对第一帧和最后一帧中的所有骨骼进行抠像.

Keyed all bones in the first and last frame.

我去过几乎所有我能在 github 上找到的线程和堆栈溢出.这些似乎是这些错误的主要问题.但我想我仍然错过了任何一点.:(

I've been to pretty much every thread I could find on github and stack overflow. These seem to be the main issues for these errors. But I guess I still miss any point. :(

我已经上传了所有文件,包括搅拌机文件和导出的动画.http://www.file-upload.net/download-8068001/forum-files.rar.html有什么建议?非常感谢.

I have uploaded all files including the blender files and exported animation. http://www.file-upload.net/download-8068001/forum-files.rar.html Any suggestions? Thanks a lot in advance.

推荐答案

问题是在导出模型之前没有重置位置/旋转/比例.

The problem was that the location/rotation/scale were not reset before exporting the model.

在导出模型之前,选择网格并按 CTRL+A 并选择位置.重复旋转和缩放,然后选择骨架并执行相同操作.现在它可以工作了.

Before You export Your model, select the mesh and press CTRL+A and select location. Repeat for rotation and scale, then select the armature and do the same. Now it works.

这篇关于Blender 导出了一个 Three.js 动画——骨骼奇怪地旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆