我目前正在嘗試使用Three.js顯示簡單的動畫3D模型。文件出口從細3ds Max軟件,但是當我嘗試動畫它,我得到的錯誤:Three.JS - DAE Animation Without Skins
Uncaught TypeError: Cannot read property 'morphTargetInfluences' of undefined
我用了http://threejs.org/examples/webgl_loader_collada.html
function animate() {
requestAnimationFrame(animate);
controls.update();
for (var i = 0; i < skin.morphTargetInfluences.length; i++) {
skin.morphTargetInfluences[ i ] = 0;
}
skin.morphTargetInfluences[ Math.floor(explode * 30) ] = 1;
render();
}
找到了動畫代碼,我跟蹤誤差降事實上我的模型沒有皮膚。無論如何,我可以爲它製作動畫嗎?導入的Three.js對象在動畫數組中只有一個條目。
乾杯隊友,羞恥的賞金有一個到期日期。 –