From f9b3c6c8c4a9d86796b830f0de1245ad5b91e8fc Mon Sep 17 00:00:00 2001 From: Percen <21pesi1bif@hft-stuttgart.de> Date: Wed, 1 Jan 2025 22:06:05 +0000 Subject: [PATCH] Update public/index.html --- public/index.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index b65a706..8dc96ea 100644 --- a/public/index.html +++ b/public/index.html @@ -150,12 +150,16 @@ <div class="menu-item" id="sunflower-item" onclick="selectModel('sunflower')"> <img src="previewImages/sunflower.png" alt="Sonnenblume" style="width: 50px; height: 50px;"> </div> - <div class="menu-item" id="tree-item" onclick="selectModel('tree')"> - <img src="previewImages/tree.png" alt="Baum" style="width: 50px; height: 50px;"> + <div class="menu-item" id="duck-item" onclick="selectModel('duck')"> + <img src="previewImages/tree.png" alt="duck" style="width: 50px; height: 50px;"> + </div> + <div class="menu-item" id="lantern-item" onclick="selectModel('lantern')"> + <img src="previewImages/tree.png" alt="lantern" style="width: 50px; height: 50px;"> </div> <div class="menu-item" id="exit-item" onclick="exitAR()"> <img src="previewImages/exit.png" alt="Exit" style="width: 50px; height: 50px;"> </div> + </div> <div id="confirmation-dialog" style="display: none;"> <div class="dialog-overlay"></div> @@ -217,6 +221,9 @@ loader.load("https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/refs/heads/main/2.0/Duck/glTF/Duck.gltf", (gltf) => { models.tree = gltf.scene; }); + loader.load("https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Assets/refs/heads/main/Models/Lantern/glTF/Lantern.gltf", (gltf) => { + models.tree = gltf.scene; + }); // AR-Session starten const session = await navigator.xr.requestSession('immersive-ar', { -- GitLab