From 5ca36a32c18ea7287f2c291e0df1dd80ffe63bf7 Mon Sep 17 00:00:00 2001 From: Percen <21pesi1bif@hft-stuttgart.de> Date: Mon, 9 Dec 2024 15:56:12 +0000 Subject: [PATCH] Update public/index.html --- public/index.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 7a21471..74f1d29 100644 --- a/public/index.html +++ b/public/index.html @@ -74,6 +74,9 @@
+ + +Mit Augmented Reality können Sie ihrer Fantasie freien Lauf lassen und ihre Stadt interaktiv gestalten!
@@ -118,17 +121,25 @@ const loader = new THREE.GLTFLoader(); let reticle; - loader.load("https://github.com/KhronosGroup/glTF-Sample-Models/blob/main/1.0/Avocado/glTF/Avocado.gltf", function(gltf) { + loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/reticle.gltf", function(gltf) { reticle = gltf.scene; reticle.visible = false; scene.add(reticle); }); - +/** let flower; loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/sunflower/sunflower.gltf", function(gltf) { flower = gltf.scene; }); +*/ + let flower; + loader.load("https://threejs.org/examples/models/gltf/RobotExpressive/RobotExpressive.glb", function(gltf) { + flower = gltf.scene; + }); + + + session.addEventListener("select", (event) => { if (flower) { const clone = flower.clone(); -- GitLab