|
@@ -53,7 +53,7 @@
|
|
|
var camera, controls, scene, renderer;
|
|
|
|
|
|
init();
|
|
|
- animate();
|
|
|
+ //animate();
|
|
|
|
|
|
function init() {
|
|
|
|
|
@@ -72,9 +72,10 @@
|
|
|
camera.position.z = 500;
|
|
|
|
|
|
controls = new THREE.OrbitControls( camera, renderer.domElement );
|
|
|
- //controls.addEventListener( 'change', render ); // add this only if there is no animation loop (requestAnimationFrame)
|
|
|
- controls.enableDamping = true;
|
|
|
- controls.dampingFactor = 0.25;
|
|
|
+ controls.addEventListener( 'change', render ); // remove when using animation loop (requestAnimationFrame)
|
|
|
+ // enable animation loop when using damping or autorotation
|
|
|
+ //controls.enableDamping = true;
|
|
|
+ //controls.dampingFactor = 0.25;
|
|
|
controls.enableZoom = false;
|
|
|
|
|
|
// world
|