Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GeoVistoogsi
AR
Commits
5ca36a32
Commit
5ca36a32
authored
Dec 09, 2024
by
Percen
Browse files
Update public/index.html
parent
fb52aea7
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/index.html
View file @
5ca36a32
...
...
@@ -74,6 +74,9 @@
<body>
<div
class=
"container"
>
<h1>
GeoVis AR Projekt
</h1>
<p>
Mit Augmented Reality können Sie ihrer Fantasie freien Lauf lassen und ihre Stadt interaktiv gestalten!
</p>
...
...
@@ -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
();
...
...
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