-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (34 loc) · 1.71 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Union Project</title>
<script src="https://aframe.io/releases/0.7.0/aframe.min.js"></script>
<!-- Waiting for update to support stereo images / A-frame Sky -->
<script src="https://cdn.rawgit.com/oscarmarinmiro/aframe-stereo-component/master/dist/aframe-stereo-component.min.js"></script>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script src="script.js"></script>
<script src="grab.js"></script>
</head>
<body>
<a-scene antialias="true">
<a-entity camera look-controls position="0 2 0" stereocam="eye:left;">
<a-entity cursor="fuse: true; fuseTimeout: 600"
position="0 0 -1"
geometry="primitive: ring; radiusInner: 0.02; radiusOuter: 0.03"
material="color: red; shader: flat">
<a-animation begin="click" easing="ease-in" attribute="scale"
fill="backwards" from="0.1 0.1 0.1" to="1 1 1"></a-animation>
<a-animation begin="cursor-fusing" easing="ease-in" attribute="scale"
fill="forwards" from="1 1 1" to="0.1 0.1 0.1"></a-animation>
</a-entity>
</a-entity>
</a-entity>
<!-- add src="img/00.JPG" while positioning markers! Inspector background cannot be displayed without static injection -->
<a-sky id="sky1" stereo="eye:left"></a-sky>
<a-sky id="sky2" stereo="eye:right"></a-sky>
<!-- <a-entity id="leftHand" position="0 2 0" hand-controls="left" grab></a-entity> -->
<!-- <a-entity id="rightHand" position="0 2 0" hand-controls="right" grab></a-entity> -->
</a-scene>
</body>
</html>