Blender导出一个three.js动画 - 骨头奇怪地旋转 [英] Blender exports a three.js animation - bones rotate strangely
问题描述
我目前正试图使用3.jp的出口商将一个动画混合器模型导出到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-动画混合器和导出 - 它到三-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-骨架-animations /
dev.mothteeth.com/2012/10/threejs-blender-exporting-skeletal-animations/
我有:
删除了电枢
I have: Deleted the Armature
检查顶点组
在第一帧和最后一帧中键入所有骨骼。
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屋!