-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (31 loc) · 1.95 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
<!doctype html>
<html>
<script src="/js/three.js"></script>
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.6.0/aframe/build/aframe-ar.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs='sourceType: webcam;'>
<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="sand" src="assets/beachSand.jpg">
</a-assets>
<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-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-marker-camera type='pattern' url='assets/data/Turtle_marker.patt'></a-marker-camera>
</a-scene>
</body>
</html>