Commit f212dcd4 authored by amandaghassaei's avatar amandaghassaei

small changes

parent 279baaeb
......@@ -31,7 +31,7 @@ THREE.TrackballControls = function ( object, domElement ) {
this.dynamicDampingFactor = 0.2;
this.minDistance = 0;
this.maxDistance = Infinity;
this.maxDistance = 400;
this.keys = [ 65 /*A*/, 83 /*S*/, 68 /*D*/ ];
......@@ -217,7 +217,6 @@ THREE.TrackballControls = function ( object, domElement ) {
factor = 1.0 + ( _zoomEnd.y - _zoomStart.y ) * _this.zoomSpeed;
if ( factor !== 1.0 && factor > 0.0 ) {
_eye.multiplyScalar( factor );
}
......
......@@ -7,7 +7,7 @@ function initThreeView(globals) {
var scene = new THREE.Scene();
var modelWrapper = new THREE.Object3D();
var camera = new THREE.PerspectiveCamera(70, window.innerWidth/window.innerHeight, 0.1, 100);
var camera = new THREE.PerspectiveCamera(70, window.innerWidth/window.innerHeight, 0.1, 500);
// var camera = new THREE.OrthographicCamera(window.innerWidth / -2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / -2, -10000, 10000);//-40, 40);
var renderer = new THREE.WebGLRenderer({antialias: true});
var svgRenderer = new THREE.SVGRenderer();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment