Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Thapa
visualization
Commits
5b723d62
Commit
5b723d62
authored
Jun 20, 2023
by
Thapa
Browse files
Update 2-Hit.html
parent
8d7dd35b
Pipeline
#8160
passed with stage
in 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/2-Hit.html
View file @
5b723d62
<!doctype html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
>
<title>
Hit
to Place Demo
</title>
<title>
Tap
to Place Demo
</title>
<!-- three.js -->
<script
src=
"https://unpkg.com/three@0.126.0/build/three.js"
></script>
...
...
@@ -16,7 +15,7 @@
<!-- Starting an immersive WebXR session requires user interaction.
We start this one with a simple button. -->
<button
onclick=
"activateXR()"
>
Start
Hit
to Place Demo
</button>
<button
onclick=
"activateXR()"
>
Start
Tap
to Place Demo
</button>
<script>
async
function
activateXR
()
{
// Add a canvas element and initialize a WebGL context that is compatible with WebXR.
...
...
@@ -72,7 +71,7 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re
})
let
flower
;
loader
.
load
(
"
https://
transfer.hft-stuttgart.de/gitlab/luxthapa6363/visualization/-/raw/master/gltf/model
.gltf
"
,
function
(
gltf
)
{
loader
.
load
(
"
https://
immersive-web.github.io/webxr-samples/media/gltf/sunflower/sunflower
.gltf
"
,
function
(
gltf
)
{
flower
=
gltf
.
scene
;
});
...
...
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