简体   繁体   English

使用Blender的Three.js .dae模型装配意外结果

[英]Three.js .dae model rigging using blender unexpected results

I am creating a rigged model for use in browser using Three.js. 我正在创建一个绑定模型,以便在使用Three.js的浏览器中使用。 Before I rig the model it loads perfectly fine I can move and rotate the model. 在装配模型之前,它可以很好地加载,我可以移动和旋转模型。 After I rig the model the pieces load in different locations with unexpected rotations. 装配模型后,零件会意外旋转地加载到不同的位置。

I am loading a .dae file type created in blender. 我正在加载在Blender中创建的.dae文件类型。 The very same file is then rigged which is when the problem occurs. 然后,将在发生问题时操纵完全相同的文件。

The pre rigged version is viewable here (just click the play button in menu) http://glasnost.itcarlow.ie/~games4/cantwelld/ThreeJS/prototype/prototype.html 可以在此处查看预安装的版本(只需单击菜单中的播放按钮) http://glasnost.itcarlow.ie/~games4/cantwelld/ThreeJS/prototype/prototype.html

The rigged version is viewable here (just click the play button in menu) http://glasnost.itcarlow.ie/~games4/cantwelld/ThreeJS/prototyperig/prototypeRigged.html 可在此处查看装配的版本(只需单击菜单中的播放按钮) http://glasnost.itcarlow.ie/~games4/cantwelld/ThreeJS/prototyperig/prototypeRigged.html

Has anyone else experienced this issue? 还有其他人遇到过这个问题吗? Is it possible to load a rigged .dae in three.js? 是否可以在three.js中加载操纵的.dae?

I removed manually the "Armature" node of the rigged model file, but nothing changed. 我手动删除了装配模型文件的“ Armature”节点,但没有任何更改。

Then I realized that nodes of the first model have fairly transformations like this: 然后我意识到第一个模型的节点具有相当的转换,如下所示:

<translate sid="location">0 0 0</translate>
<rotate sid="rotationZ">0 0 1 0</rotate>
<rotate sid="rotationY">0 1 0 0</rotate>
<rotate sid="rotationX">1 0 0 90.00001</rotate>

But nodes of the second model have a different transformation for each one: 但是第二个模型的节点对每个模型都有不同的转换:

<translate sid="location">-0.03634153 0.2361725 0.196658</translate>
<rotate sid="rotationZ">0 0 1 7.848763</rotate>
<rotate sid="rotationY">0 1 0 -7.652335</rotate>
<rotate sid="rotationX">1 0 0 178.5435</rotate>

That's the difference. 就是这样。

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

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