-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathar1.html
More file actions
50 lines (46 loc) · 1.29 KB
/
Copy pathar1.html
File metadata and controls
50 lines (46 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
<!-- we import arjs version without NFT but with marker + location based support -->
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
<style>
html,
body {
height: 100%;
margin: 0;
overflow: hidden;
}
body {
position: relative;
}
canvas,
video {
display: block;
width: 100% !important;
height: 100% !important;
margin: 0 !important;
object-fit: contain !important;
}
</style>
<body>
<a-scene
embedded
arjs="sourceWidth: window.innerWidth > window.innerHeight ? 640 : 480; sourceHeight: window.innerWidth > window.innerHeight ? 480 : 640"
>
<a-marker preset="hiro">
<a-box
position="0 0.5 0"
material="opacity: 0.5; side: double;color:blue;"
>
<a-torus-knot
radius="0.26"
radius-tubular="0.05"
animation="property: rotation; to:360 0 0; dur: 5000; easing: linear; loop: true"
>
</a-torus-knot>
</a-box>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>