From c3a33b5689144a1c475965957d9c4025facf3ab7 Mon Sep 17 00:00:00 2001 From: Percen <21pesi1bif@hft-stuttgart.de> Date: Mon, 9 Dec 2024 15:43:18 +0000 Subject: [PATCH] Update public/index.html --- public/index.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index fd6ebb6..74f1d29 100644 --- a/public/index.html +++ b/public/index.html @@ -74,6 +74,9 @@ + + +

GeoVis AR Projekt

Mit Augmented Reality können Sie ihrer Fantasie freien Lauf lassen und ihre Stadt interaktiv gestalten!

@@ -123,12 +126,20 @@ 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