Browse Source

Adjust framing

Gregg Tavares 6 years ago
parent
commit
ee80be934d

+ 1 - 1
threejs/threejs-load-gltf-animated-cars.html

@@ -199,7 +199,7 @@ function main() {
       const boxCenter = box.getCenter(new THREE.Vector3());
 
       // set the camera to frame the box
-      frameArea(boxSize * 1.2, boxSize, boxCenter, camera);
+      frameArea(boxSize * 0.5, boxSize, boxCenter, camera);
 
       // update the Trackball controls to handle the new size
       controls.maxDistance = boxSize * 10;

+ 1 - 1
threejs/threejs-load-gltf-car-path-fixed.html

@@ -199,7 +199,7 @@ function main() {
       const boxCenter = box.getCenter(new THREE.Vector3());
 
       // set the camera to frame the box
-      frameArea(boxSize * 1.2, boxSize, boxCenter, camera);
+      frameArea(boxSize * 0.5, boxSize, boxCenter, camera);
 
       // update the Trackball controls to handle the new size
       controls.maxDistance = boxSize * 10;

+ 1 - 1
threejs/threejs-load-gltf-car-path.html

@@ -196,7 +196,7 @@ function main() {
       const boxCenter = box.getCenter(new THREE.Vector3());
 
       // set the camera to frame the box
-      frameArea(boxSize * 1.2, boxSize, boxCenter, camera);
+      frameArea(boxSize * 0.5, boxSize, boxCenter, camera);
 
       // update the Trackball controls to handle the new size
       controls.maxDistance = boxSize * 10;

+ 1 - 1
threejs/threejs-load-gltf-dump-scenegraph-extra.html

@@ -148,7 +148,7 @@ function main() {
       const boxCenter = box.getCenter(new THREE.Vector3());
 
       // set the camera to frame the box
-      frameArea(boxSize * 1.2, boxSize, boxCenter, camera);
+      frameArea(boxSize * 0.5, boxSize, boxCenter, camera);
 
       // update the Trackball controls to handle the new size
       controls.maxDistance = boxSize * 10;

+ 1 - 1
threejs/threejs-load-gltf-dump-scenegraph.html

@@ -138,7 +138,7 @@ function main() {
       const boxCenter = box.getCenter(new THREE.Vector3());
 
       // set the camera to frame the box
-      frameArea(boxSize * 1.2, boxSize, boxCenter, camera);
+      frameArea(boxSize * 0.5, boxSize, boxCenter, camera);
 
       // update the Trackball controls to handle the new size
       controls.maxDistance = boxSize * 10;

+ 1 - 1
threejs/threejs-load-gltf-rotate-cars-fixed.html

@@ -145,7 +145,7 @@ function main() {
       const boxCenter = box.getCenter(new THREE.Vector3());
 
       // set the camera to frame the box
-      frameArea(boxSize * 1.2, boxSize, boxCenter, camera);
+      frameArea(boxSize * 0.5, boxSize, boxCenter, camera);
 
       // update the Trackball controls to handle the new size
       controls.maxDistance = boxSize * 10;

+ 1 - 1
threejs/threejs-load-gltf-rotate-cars.html

@@ -127,7 +127,7 @@ function main() {
       const boxCenter = box.getCenter(new THREE.Vector3());
 
       // set the camera to frame the box
-      frameArea(boxSize * 1.2, boxSize, boxCenter, camera);
+      frameArea(boxSize * 0.5, boxSize, boxCenter, camera);
 
       // update the Trackball controls to handle the new size
       controls.maxDistance = boxSize * 10;

+ 1 - 1
threejs/threejs-load-gltf-shadows.html

@@ -323,7 +323,7 @@ function main() {
       const boxCenter = box.getCenter(new THREE.Vector3());
 
       // set the camera to frame the box
-      frameArea(boxSize * 1.2, boxSize, boxCenter, camera);
+      frameArea(boxSize * 0.5, boxSize, boxCenter, camera);
 
       // update the Trackball controls to handle the new size
       controls.maxDistance = boxSize * 10;

+ 1 - 1
threejs/threejs-load-gltf.html

@@ -125,7 +125,7 @@ function main() {
       const boxCenter = box.getCenter(new THREE.Vector3());
 
       // set the camera to frame the box
-      frameArea(boxSize * 1.2, boxSize, boxCenter, camera);
+      frameArea(boxSize * 0.5, boxSize, boxCenter, camera);
 
       // update the Trackball controls to handle the new size
       controls.maxDistance = boxSize * 10;