2012-02-23 60 views
0

我正在使用Three.js创建一个在浏览器中使用的索具模型。在我装配模型之前,它可以完美地加载,我可以移动和旋转模型。在对模型进行装配之后,这些部件将以不可预期的旋转加载到不同的位置Three.js .dae模型索具使用搅拌机意外结果

我正在加载在blender中创建的.dae文件类型。然后操纵相同的文件,即出现问题的时间。

预操纵版本是可见这里(只需点击菜单中的播放按钮) http://glasnost.itcarlow.ie/~games4/cantwelld/ThreeJS/prototype/prototype.html

着装版本是可见这里(只需点击菜单中的播放按钮) http://glasnost.itcarlow.ie/~games4/cantwelld/ThreeJS/prototyperig/prototypeRigged.html

有其他人遇到这个问题?是否有可能在three.js中加载一个操纵的.dae?

回答

0

我手动删除了已绑定模型文件的“Armature”节点,但没有任何更改。

然后我意识到,第一个模型的节点都具有相当的转换是这样的:

<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> 

但是第二个模型的节点对每一个不同的转换:

<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> 

这就是区别。

+0

谢谢我没有注意到点在操纵模型中有这样奇怪的转换。手动将它们更改为不受限制的模型,可以正确绘制模型。 – harbourmaster 2012-02-25 00:17:48