-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (111 loc) · 5.08 KB
/
index.html
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html>
<head>
<meta name="theme-color" content="#9b07a8" />
<link rel="icon" href="images/icons/icon-72x72.png">
<link rel="manifest" href="./manifest.webmanifest">
<link rel="apple-touch-icon" href="images/icons/icon-192x192.png">
<script type="text/javascript">
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("sw.js");
}
</script>
<script src="aframe.min.js"></script>
<script src="gestures.js"></script>
<!-- we import arjs version without NFT but with marker + location based support -->
<script src="aframe-ar.js"></script>
</head>
<body style="margin : 0px; overflow: hidden;">
<a-scene embedded arjs='sourceType: webcam; detectionMode: mono_and_matrix; matrixCodeType: 3x3;' gesture-detector renderer="logarithmicDepthBuffer: true;">
<a-marker type="barcode" value="0"
raycaster="objects: .clickable"
emitevents="true"
cursor="fuse: false; rayOrigin: mouse;"
smooth="true"
smoothCound="10"
smoothTolerance="0.01"
smoothThreshold="5"
>
<a-entity
position="0 0 0"
rotation="0 0 0"
scale="1 1 1"
gltf-model="res/Location0.glb"
gesture-handler="minScale: 0.25; maxScale: 10; rotationFactor: 0"
></a-entity>
<a-plane position="0 0 0" rotation="-90 0 0" width="2" height="2" src="res/Pinch_zoom.png" gesture-handler="minScale: 1; maxScale: 1; rotationFactor: 0"></a-plane>
</a-marker>
<a-marker type="barcode" value="1">
<a-entity
position="0 0 0"
rotation="0 0 0"
scale="1 1 1"
gltf-model="res/Location1.glb"
gesture-handler="minScale: 0.25; maxScale: 10; rotationFactor: 0"
></a-entity>
<a-plane position="0 0 0" rotation="-90 0 0" width="2" height="2" src="res/Pinch_zoom.png" gesture-handler="minScale: 1; maxScale: 1; rotationFactor: 0"></a-plane>
</a-marker>
<a-marker type="barcode" value="2">
<a-entity
position="0 0 0"
rotation="0 0 0"
scale="1 1 1"
gltf-model="res/Location2.glb"
gesture-handler="minScale: 0.25; maxScale: 10; rotationFactor: 0"
></a-entity>
<a-plane position="0 0 0" rotation="-90 0 0" width="2" height="2" src="res/Pinch_zoom.png" gesture-handler="minScale: 1; maxScale: 1; rotationFactor: 0"></a-plane>
</a-marker>
<a-marker type="barcode" value="3">
<a-entity
position="0 0 0"
rotation="0 0 0"
scale="1 1 1"
gltf-model="res/Location3.glb"
gesture-handler="minScale: 0.25; maxScale: 10; rotationFactor: 0"
></a-entity>
<a-plane position="0 0 0" rotation="-90 0 0" width="2" height="2" src="res/Pinch_zoom.png" gesture-handler="minScale: 1; maxScale: 1; rotationFactor: 0"></a-plane>
</a-marker>
<a-marker type="barcode" value="4">
<a-entity
position="0 0 0"
rotation="0 0 0"
scale="1 1 1"
gltf-model="res/Location4.glb"
gesture-handler="minScale: 0.25; maxScale: 10; rotationFactor: 0"
></a-entity>
<a-plane position="0 0 0" rotation="-90 0 0" width="2" height="2" src="res/Pinch_zoom.png" gesture-handler="minScale: 1; maxScale: 1; rotationFactor: 0"></a-plane>
</a-marker>
<a-marker type="barcode" value="5">
<a-entity
position="0 0 0"
rotation="0 0 0"
scale="1 1 1"
gltf-model="res/Location5.glb"
gesture-handler="minScale: 0.25; maxScale: 10; rotationFactor: 0"
></a-entity>
<a-plane position="0 0 0" rotation="-90 0 0" width="2" height="2" src="res/Pinch_zoom.png" gesture-handler="minScale: 1; maxScale: 1; rotationFactor: 0"></a-plane>
</a-marker>
<a-marker type="barcode" value="6">
<a-entity
position="0 0 0"
rotation="0 0 0"
scale="1 1 1"
gltf-model="res/Location6.glb"
gesture-handler="minScale: 0.25; maxScale: 10; rotationFactor: 0"
></a-entity>
<a-plane position="0 0 0" rotation="-90 0 0" width="2" height="2" src="res/Pinch_zoom.png" gesture-handler="minScale: 1; maxScale: 1; rotationFactor: 0"></a-plane>
</a-marker>
<a-marker type="barcode" value="7">
<a-entity
position="0 0 0"
rotation="0 0 0"
scale="1 1 1"
gltf-model="res/Location7.glb"
gesture-handler="minScale: 0.25; maxScale: 10; rotationFactor: 0"
></a-entity>
<a-plane position="0 0 0" rotation="-90 0 0" width="2" height="2" src="res/Pinch_zoom.png" gesture-handler="minScale: 1; maxScale: 1; rotationFactor: 0"></a-plane>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>