Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GeoVistoogsi
AR
Commits
f9b3c6c8
Commit
f9b3c6c8
authored
5 months ago
by
Percen
Browse files
Options
Download
Email Patches
Plain Diff
Update public/index.html
parent
f7d10f07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.html
+9
-2
public/index.html
with
9 additions
and
2 deletions
+9
-2
public/index.html
+
9
-
2
View file @
f9b3c6c8
...
...
@@ -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
'
,
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets