Satellite1.glb (4.2 MB)
let bounds = new THREE.Box3().setFromObject(glb.scene);
let size = bounds.getSize(new THREE.Vector3());
let max = Math.max(size.x,Math.max(size.y,size.z));
glb.scene.scale.multiplyScalar(1/max);
scene.add(glb.scene);
camera.position.set(1,1,1);
camera.lookAt(glb.scene.position);
2 Likes