-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic.90.html
32 lines (32 loc) · 1.01 KB
/
basic.90.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
<html>
<head>
<meta charset="utf-8"/>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.5.0/aframe/examples/vendor/aframe/build/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.5.0/aframe/build/aframe-ar.js"></script>
<script>ARjs.Context.baseURL = 'lib/three.js/'</script>
<!-- include aframe-swimming-pool -->
<script src='src/aframe-swimming-pool.js'></script>
<script src='src/threex-swimming-pool.js'></script>
</head>
<!-- start the body of your page -->
<body style='margin : 0px; overflow: hidden;'>
<!-- Define your 3d scene and enabled ar.js -->
<a-scene embedded arjs='trackingMethod: best;'>
<!-- Create a anchor to attach your augmented reality -->
<a-anchor >
<!-- Swimming Pool -->
<a-swimming-pool
width='2'
length='4'
depth='1'
water-level='0.8'
water-opacity='0.5'
position='0 0 0'
rotation='90 0 0'>
</a-swimming-pool>
</a-anchor>
<!-- Define a static camera -->
<a-camera-static/>
</a-scene>
</body>
</html>