2012-02-23 45 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