diff --git a/dependencies/OrbitControls.js b/dependencies/OrbitControls.js index 224e04572c39567e2d722cc53c8ffa48d4b3be88..24f82d57ab1077b026538178331cdf1339954613 100644 --- a/dependencies/OrbitControls.js +++ b/dependencies/OrbitControls.js @@ -45,7 +45,7 @@ THREE.OrbitControls = function ( object, domElement ) { // Limits to how far you can dolly in and out this.minDistance = 0; - this.maxDistance = Infinity; + this.maxDistance = 600; // Set to true to disable this control this.noRotate = false; diff --git a/js/three/ThreeModel.js b/js/three/ThreeModel.js index a5ac8315959e659862d20f951f8d1409da2af3b9..6f02654ddb7fccd525ab777d157ef6c84d503ea1 100644 --- a/js/three/ThreeModel.js +++ b/js/three/ThreeModel.js @@ -5,7 +5,7 @@ define(['underscore', 'three'], function(_, THREE){ - var camera = new THREE.PerspectiveCamera(60, window.innerWidth/window.innerHeight, 0.01, 5000); + var camera = new THREE.PerspectiveCamera(60, window.innerWidth/window.innerHeight, 0.01, 1000); var scene = new THREE.Scene(); var renderer = new THREE.WebGLRenderer({antialias:true});//antialiasing is not supported in ff and on mac+chrome