Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rkinnett committed May 9, 2022
1 parent d910ad4 commit b467621
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ingenuity_demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

import * as THREE from 'three';
import * as dat from 'dat.gui';
import { MapControls } from './three/OrbitControls.js';
import { OrbitControls, MapControls } from './three/OrbitControls.js';
import { GLTFLoader } from './three/GLTFLoader.js';
//import { RGBELoader } from './jsm/loaders/RGBELoader.js';

Expand Down Expand Up @@ -116,7 +116,7 @@
container.appendChild( renderer.domElement );

camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 0.1, 200000 );
camera.position.set( -5, -2, -2 );
camera.position.set( -3, 4, -1 );
camera.up.set(0,0,-1)
camera.lookAt(0,0,-2);

Expand Down Expand Up @@ -198,12 +198,13 @@
scene.add( axesHelper );


controls = new MapControls( camera, renderer.domElement );
controls = new OrbitControls( camera, renderer.domElement );
//controls.addEventListener( 'change', render ); // use if there is no animation loop
controls.minDistance = 1;
controls.maxDistance = 10000;
controls.enableDamping = false;
controls.screenSpacePanning = false; // for mapcontrols
//controls.screenSpacePanning = false; // false for mapcontrols, true for orbitcontrols
controls.screenSpacePanning = true; // false for mapcontrols, true for orbitcontrols
controls.mouseButtons = {LEFT: 0, MIDDLE: 1, RIGHT: 2};
controls.update();

Expand Down

0 comments on commit b467621

Please sign in to comment.