在Blender中创建模型并在three.js中播放它的正确过程是什么?
谈论骨骼动画 . 要导出什么,以及为了在three.js上播放动画而调用的函数 . 另外,为了在three.js中工作,一个简单的JSON导出文件应该如何 .
管道究竟应该如何才能获得正确的结果?
导出动画模型时,需要在导出器中选中"Skinning","Bones"和"Skeletal animation"选项 . 生成的json文件应包含非空 skinWeights , bones 和 animation 属性,如此文件中所示:http://mrdoob.github.com/three.js/examples/obj/buffalo/buffalo.js
skinWeights
bones
animation
要使用Three.js播放动画,请从以下示例开始:http://mrdoob.github.com/three.js/examples/webgl_animation_skinning.html(在three.js源包中可用) .
1 回答
导出动画模型时,需要在导出器中选中"Skinning","Bones"和"Skeletal animation"选项 . 生成的json文件应包含非空
skinWeights
,bones
和animation
属性,如此文件中所示:http://mrdoob.github.com/three.js/examples/obj/buffalo/buffalo.js要使用Three.js播放动画,请从以下示例开始:http://mrdoob.github.com/three.js/examples/webgl_animation_skinning.html(在three.js源包中可用) .