-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (56 loc) · 2.79 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
<!doctype HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
</head>
<script src="https://aframe.io/releases/0.9.0/aframe.min.js"></script>
<script src="https://rawgit.com/jeromeetienne/AR.js/master/aframe/build/aframe-ar.min.js"></script>
<script src="https://rawgit.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<!-- we add detectionMode and matrixCodeType to tell AR.js to recognize barcode markers -->
<a-scene embedded
arjs='sourceType: webcam; debugUIEnabled: false; detectionMode: mono_and_matrix; matrixCodeType: 3x3;'>
<a-assets>
<a-asset-item id="christmas_tree" src="assets/christmas_tree.glb"></a-asset-item>
<a-asset-item id="christmas_present" src="assets/christmas_present.glb"></a-asset-item>
<a-asset-item id="snow_fx_test" src="assets/snow_fx_test.glb"></a-asset-item>
<a-asset-item id="christmas" src="assets/christmas.glb"></a-asset-item>
<a-asset-item id="christmas_globe" src="assets/christmas_globe.glb"></a-asset-item>
</a-assets>
<a-marker id="animated-marker" type='barcode' value='5'>
<a-entity gltf-model="#christmas_tree" scale="3 3 3 3">
</a-entity>
</a-marker>
<a-marker id="animated-marker" type='barcode' value='6'>
<a-entity gltf-model="#christmas_present" scale="6 6 6 6">
</a-entity>
</a-marker>
<a-marker id="animated-marker" type='barcode' value='7'>
<a-entity gltf-model="#snow_fx_test" scale="3 3 3 3" animation-mixer="loop: repeat">
</a-entity>
</a-marker>
<a-marker id="animated-marker" type='barcode' value='8'>
<a-entity gltf-model="#christmas" scale="150 150 150 150">
</a-entity>
</a-marker>
<a-marker id="animated-marker" type='barcode' value='9'>
<a-entity gltf-model="#christmas_globe" scale="0.5 0.5 0.5 0.5">
</a-entity>
</a-marker>
<!-- <a-marker type='barcode' value='7'>
<a-box position='0 0.5 0' color="yellow"></a-box>
</a-marker>
<a-marker type='barcode' value='8'>
<a-box position='0 0.5 0' color="purple"></a-box>
</a-marker>
<a-marker type=' barcode' value='9'>
<a-box position='0 0.5 0' color="red"></a-box>
</a-marker>
<a-marker type=' barcode' value='6'>
<a-box position='0 0.5 0' color="green"></a-box>
</a-marker> -->
<!-- use this <a-entity camera> to support multiple-markers, otherwise use <a-marker-camera> instead of </a-marker> -->
<a-entity camera></a-entity>
</a-scene>
</body>
</html>