We will first understand how the bone DOFs and skinning information is encoded in the three.js JSON file format (Version 3.1). Then we will modify our code to load the data. The JSON file is exported from Blender. We will learn how to export the JSON file in the Exporting models from 3D software in JSON section.
The JSON file contains bone DOF values and their corresponding skinning information. Open
model/obj/mrgreen.json in your favorite text editor. The file has now four new arrays:
animation. We will discuss the
animation array in the Animating a rigged JSON model section.
bones array contains the DOF information. It holds the binding matrix ...