How to use the Skeleton function from three

Find comprehensive JavaScript three.Skeleton code examples handpicked from public code repositorys.

2876
2877
2878
2879
2880
2881
2882
2883
2884
      );
    }
  }

  mesh.bind(
    new THREE.Skeleton(bones, boneInverses),
    mesh.matrixWorld
  );
});
fork icon3
star icon7
watch icon8

+ 14 other calls in file

3879
3880
3881
3882
3883
3884
3885
3886
3887

        }

    }

    mesh.bind( new THREE.Skeleton( bones, boneInverses ), mesh.matrixWorld );

} );
return node;
fork icon2
star icon10
watch icon0

2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
                }
                else {
                    console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', skinEntry.joints[j]);
                }
            }
            mesh.bind(new three.Skeleton(bones, boneInverses), mesh.matrixWorld);
        });
        return node;
    });
}).then(node => {
fork icon2
star icon7
watch icon0

283
284
285
286
287
288
289
290
291
292
    const material = this.materialBuilder
        .setCrossOrigin(this.crossOrigin)
        .setResourcePath(resourcePath)
        .build(data, geometry, onProgress, onError);
    const mesh = new three_1.SkinnedMesh(geometry, material);
    const skeleton = new three_1.Skeleton(initBones(mesh));
    mesh.bind(skeleton);
    // console.log( mesh ); // for console debug
    return mesh;
}
fork icon1
star icon3
watch icon0

+ 4 other calls in file

1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
  } else {
    console.warn("WARNING: joint: '" + jointId + "' could not be found");
  }
}

child.bind(new THREE.Skeleton(bones, boneInverses), skinEntry.bindShapeMatrix);

var buildBoneGraph = function (parentJson, parentObject, property) {
  var children = parentJson[property];
  if (children === undefined) return;
fork icon0
star icon1
watch icon0

+ 9 other calls in file

2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
        } else {
          console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', skinEntry.joints[j]);
        }
      }

      mesh.bind(new _three.Skeleton(bones, boneInverses), mesh.matrixWorld);
    });
    return node;
  });
}).then(function (node) {
fork icon0
star icon1
watch icon0

2116
2117
2118
2119
2120
2121
2122
2123
2124
2125

	if ( modelMap.has( geoConnParent.ID ) ) {

		var model = modelMap.get( geoConnParent.ID );

		model.bind( new THREE.Skeleton( skeleton.bones ), model.matrixWorld );

	}

} );
fork icon0
star icon0
watch icon1

+ 88 other calls in file

1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
geoRelationships.parents.forEach(function (geoConnParent) {
  if (modelMap.has(geoConnParent.ID)) {
    var model = modelMap.get(geoConnParent.ID);

    model.bind(
      new THREE.Skeleton(skeleton.bones),
      bindMatrices[geoConnParent.ID],
    );
  }
});
fork icon0
star icon0
watch icon0

6
7
8
9
10
11
12
13
14
15
16
// https://threejs.org/docs/#api/en/objects/Skeleton
// https://threejs.org/docs/#api/en/helpers/SkeletonHelper
// https://threejs.org/docs/#api/en/objects/SkinnedMesh


const THREE = require('three');
const _Skeleton = THREE.Skeleton;
const _Bone = THREE.Bone;
//const Vector3 = THREE.Vector3;
//const Matrix4 = THREE.Matrix4;

fork icon0
star icon0
watch icon0

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)