Problem With Fbxmodel Position

Your experiments with positions and rotations of the camera and the scene are hell of the chaos.
Anyway, somehow I dug through it :smile:

You can use THREE.Box3() and its method to put your model in the center of the scene.

https://jsfiddle.net/prisoner849/dwqqqg9d/

The red box shows the the original position of your model.

  loader.load('https://security-press.com/fbx/model/DigestiveAnimation.fbx', function(object) {

    var box3 = new THREE.Box3().setFromObject(object);

    scene.add(new THREE.Box3Helper(box3, 0xFF0000));

    var shift = box3.getCenter();

    object.position.sub(shift);

    scene.add(new THREE.Box3Helper(new THREE.Box3().setFromObject(object)));

    scene.add(object);
  }, onProgress, onError);
2 Likes