From c8ca402d28d5154f555bd33b59c00a91c864cac8 Mon Sep 17 00:00:00 2001 From: m-schuetz Date: Wed, 24 Jul 2019 10:35:56 +0200 Subject: [PATCH] ... --- examples/vr_dechen_cave.html | 137 +++++++++++++++++++++++++++++++ examples/vr_heidentor.html | 153 +++++++++++++++++++++++++++++++++++ src/viewer/Scene.js | 40 ++++----- 3 files changed, 310 insertions(+), 20 deletions(-) create mode 100644 examples/vr_dechen_cave.html create mode 100644 examples/vr_heidentor.html diff --git a/examples/vr_dechen_cave.html b/examples/vr_dechen_cave.html new file mode 100644 index 00000000..579f3fea --- /dev/null +++ b/examples/vr_dechen_cave.html @@ -0,0 +1,137 @@ + + + + + + + + + + + Potree Viewer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + + + +
+ + + +
+ + + diff --git a/examples/vr_heidentor.html b/examples/vr_heidentor.html new file mode 100644 index 00000000..cc970af3 --- /dev/null +++ b/examples/vr_heidentor.html @@ -0,0 +1,153 @@ + + + + + + + + + + + Potree Viewer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + + + +
+ + + +
+ + + diff --git a/src/viewer/Scene.js b/src/viewer/Scene.js index 176e4aaa..d98c3667 100644 --- a/src/viewer/Scene.js +++ b/src/viewer/Scene.js @@ -287,28 +287,28 @@ export class Scene extends EventDispatcher{ this.sceneBG.add(bg); } - { // lights - { - let light = new THREE.DirectionalLight(0xffffff); - light.position.set(10, 10, 1); - light.target.position.set(0, 0, 0); - this.scene.add(light); - } + //{ // lights + // { + // let light = new THREE.DirectionalLight(0xffffff); + // light.position.set(10, 10, 1); + // light.target.position.set(0, 0, 0); + // this.scene.add(light); + // } - { - let light = new THREE.DirectionalLight(0xffffff); - light.position.set(-10, 10, 1); - light.target.position.set(0, 0, 0); - this.scene.add(light); - } + // { + // let light = new THREE.DirectionalLight(0xffffff); + // light.position.set(-10, 10, 1); + // light.target.position.set(0, 0, 0); + // this.scene.add(light); + // } - { - let light = new THREE.DirectionalLight(0xffffff); - light.position.set(0, -10, 20); - light.target.position.set(0, 0, 0); - this.scene.add(light); - } - } + // { + // let light = new THREE.DirectionalLight(0xffffff); + // light.position.set(0, -10, 20); + // light.target.position.set(0, 0, 0); + // this.scene.add(light); + // } + //} } addAnnotation(position, args = {}){