-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMultMarkers.html
99 lines (61 loc) · 3.81 KB
/
MultMarkers.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
<!DOCTYPE html>
<script src="build/aframe.min.js"></script>
<!-- include aframe-ar.js -->
<script src="build/aframe-ar.js"></script>
<body style='margin : 0px; overflow: hidden; font-family: Monospace;'>
<a-scene embedded arjs='sourceType: webcam; detectionMode: mono_and_matrix; matrixCodeType: 3x3;'>
<a-assets>
<!-- No loop. -->
<video id="left" src="assets/Water_L.mp4" autoplay="true" loop="true">
<video id="right" src="assets/Water_R.mp4" autoplay="true" loop="true">
<video id="center" src="assets/Water_M.mp4" autoplay="true" loop="true">
<video id="top" src="assets/Water_T.mp4" autoplay="true" loop="true">
<img id="beach" src="assets/Beach.jpg">
<img id="sand" src="assets/beachSand.jpg">
<img id="sky" src="assets/beachsky.jpg">
</a-assets>
<!-- handle unknown marker -->
<!-- <a-marker type='unknown'>
<a-box depth="1" height="1" width="1" position='0 0.5 0' material='opacity: 0.5; side:double; color:blue;'></a-box>
</a-marker> -->
<a-marker type='pattern' url='build/VW_marker.patt'>
<a-entity obj-model="obj: url(assets/VW_BUS.obj); mtl: url(assets/VW_BUS.mtl)" position="-0.2 -0.27 .6" rotation="270 0 0" scale=".15 .15 .15">
</a-entity>
<a-entity obj-model="obj: url(assets/Campfire/Campfire.obj); mtl: url(assets/Campfire/Campfire.mtl)" position="0.3 -.35 .6" rotation="-90 0 0" scale="1.8 1.8 1.8">
</a-entity>
<a-plane src="#beach" rotation="-90 0 0" position="0 -1.25 0" width="1.25" height="1.25" repeat="1 1" side="front"></a-plane>
<!-- left -->
<a-plane src="#beach" rotation="0 -90 90" position="-.625 -.625 0" width="1.25" height="1.25" repeat="1 1" side="back"></a-plane>
<a-plane src="#sand" rotation="0 0 -90" position="0 -.625 .625" width="1.25" height="1.25" repeat="1 1" side="back"></a-plane>
<!-- No loop. -->
<a-plane src="#sky" rotation="0 0 -90" position="0 -.625 -.625" width="1.25" height="1.25" repeat="1 1" side="front"></a-plane>
<!-- right -->
<a-plane src="#beach" rotation="0 90 -90" position=".625 -.625 0" width="1.25" height="1.25" repeat="1 1" side="back"></a-plane>
</a-marker>
<a-marker type='pattern' url='build/Turtle_marker.patt'>
<a-plane src="#center" rotation="-90 0 0" position="0 -1.25 0" width="1.25" height="1.25" repeat="1 1" side="front"></a-plane>
<!-- left -->
<a-plane src="#left" rotation="0 -90 90" position="-.625 -.625 0" width="1.25" height="1.25" repeat="1 1" side="back"></a-plane>
<a-plane src="#sand" rotation="0 0 -90" position="0 -.625 .625" width="1.25" height="1.25" repeat="1 1" side="back" material="color: #211605"></a-plane>
<!-- No loop. -->
<a-plane src="#top" rotation="0 0 -90" position="0 -.625 -.625" width="1.25" height="1.25" repeat="1 1" side="front"></a-plane>
<!-- right -->
<a-plane src="#right" rotation="0 90 -90" position=".625 -.625 0" width="1.25" height="1.25" repeat="1 1" side="back"></a-plane>
<a-entity obj-model="obj: url(assets/Turtle.obj); mtl: url(assets/Turtle.mtl)" position="0 -.5 0" rotation="260 180 0" scale="0.1 0.1 0.1">
<a-animation attribute="rotation" to="280 180 0" direction="alternate" dur="2000"
repeat="indefinite"></a-animation>
</a-entity>
</a-marker>
<!-- handle matrix marker -->
<a-marker type='barcode' value='5'>
<a-box position='0 0.5 0' material='opacity: 0.5; side: double;color:pink;'>
<a-torus-knot radius='0.26' radius-tubular='0.05'>
<a-animation attribute="rotation" to="360 0 0" dur="5000" easing='linear' repeat="indefinite"></a-animation>
</a-torus-knot>
</a-box>
</a-marker>
<!-- add a simple camera -->
<a-entity camera></a-entity>
</a-scene>
</body>
</html>