相关疑难解决方法(0)

模型与骨骼动画(搅拌机导出)在three.js中动画不正确

我目前正在研究three.js中的骨骼动画测试.我有一个简单的模型,在搅拌机中动画很好.基本上它由三个堆叠的弯曲立方体组成.

当我使用带有Blender V2.64的blender导出插件将blender文件导出到three.js时,webGl上下文中的动画看起来不同,就好像匀称是错误的一样.

WebGL演示:http: //rainbowrangers.de/threejs/animation_test01/

Blender-File:http: //rainbowrangers.de/threejs/animation_test01/model/animation_test01.blend

我需要做些什么才能在three.js中获得正确的结果?

blender three.js skeletal-animation

9
推荐指数
1
解决办法
4658
查看次数

How to optimize performance using instancing in a scene full of skinned-mesh?

I’m working on a web tower defense game based on three.js. Now I’m stuck at optimizing the performance.

My game loads two GLTF models as enemy and tower, both have skinned-mesh. When the player creates a tower or the game spawns an enemy, I use THREE.AnimationUtils.clone to clone the loaded model. Then I add this cloned model to the scene. For animation, I use THREE.AnimationObjectGroup to animate all the enemies.

This results in an average of 370 draw-calls per frame …

javascript three.js

7
推荐指数
1
解决办法
787
查看次数