From 76e0b9c7b95a34589ab6c2506b23910c5e5d6867 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Mon, 8 May 2023 14:36:13 +0200 Subject: [PATCH] updated docs --- example/threejs/sandbox/index.html | 32 +++++++++++++++--------------- index.html | 14 ++++++------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/example/threejs/sandbox/index.html b/example/threejs/sandbox/index.html index 373eae7..149c1fc 100644 --- a/example/threejs/sandbox/index.html +++ b/example/threejs/sandbox/index.html @@ -9,13 +9,13 @@ -
+
- +
@@ -149,26 +149,26 @@ }; - let file = 'example2.gltf#pos=0,1,2' + let file = 'example2.gltf' $('#model').setAttribute("href","./../../asset/"+file) loader.load( file, loadGLTF ); // setup mouse controls - controls = new OrbitControls( camera, renderer.domElement ); - controls.listenToKeyEvents( window ); // optional - controls.enableDamping = true; // an animation loop is required when either damping or auto-rotation are enabled - controls.dampingFactor = 0.1; + //controls = new OrbitControls( camera, renderer.domElement ); + //controls.listenToKeyEvents( window ); // optional + //controls.enableDamping = true; // an animation loop is required when either damping or auto-rotation are enabled + //controls.dampingFactor = 0.1; - controls.screenSpacePanning = false; + //controls.screenSpacePanning = false; - controls.minDistance = 0.1; - controls.maxDistance = 5000; - controls.maxPolarAngle = Math.PI / 2; - controls.target = new THREE.Vector3(0,1.6,0) + //controls.minDistance = 0.1; + //controls.maxDistance = 5000; + //controls.maxPolarAngle = Math.PI / 2; + //controls.target = new THREE.Vector3(0,1.6,0) - camera.position.set( 0, 1.6, 10 ); - controls.update() + camera.position.set( -1, 1.6, 10 ); + //controls.update() const geometry = new THREE.BufferGeometry(); geometry.setFromPoints( [ new THREE.Vector3( 0, 0, 0 ), new THREE.Vector3( 0, 0, - 5 ) ] ); @@ -266,7 +266,7 @@ if( XRF.getLastModel() ) XRF.getLastModel().render(scene,camera) - controls.update() + //controls.update() renderer.render( scene, camera ); stats.update(); diff --git a/index.html b/index.html index 8333470..fb830bd 100644 --- a/index.html +++ b/index.html @@ -1212,8 +1212,8 @@ Error message and password prompt