luke1985
luke1985

Reputation: 2354

How to make a skeletal animation in Blender and play it in three.js

What is the correct process for creating model in Blender and playing it in three.js?

Talking about skeletal animation. What to export, and which functions to call in order to play the animation on three.js. Also how should a trivial JSON exported file look like in order to work in three.js.

How exactly should a pipeline look like for correct results?

Upvotes: 5

Views: 4257

Answers (1)

Tapio
Tapio

Reputation: 3456

When exporting your animated model, you need to have "Skinning", "Bones" and "Skeletal animation" options checked in the exporter. The resulting json file should contain, among other things, non-empty skinWeights, bones and animation properties, like in this file: http://mrdoob.github.com/three.js/examples/obj/buffalo/buffalo.js

For playing the animation with Three.js, start with this example: http://mrdoob.github.com/three.js/examples/webgl_animation_skinning.html (available in the three.js source package).

Upvotes: 4

Related Questions