-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtutorial.html
91 lines (71 loc) · 5.2 KB
/
tutorial.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
<html>
<!-- This Demo overlays a rigged hand on top of the existing page. Requires a WebGL-capable browser. -->
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r70/three.min.js"></script>
<script src="src/inflate.min.js"></script>
<!-- <script src="src/require.js"></script> -->
<script src="node_modules/leapjs/leap-0.6.4.min.js"></script>
<script src="node_modules/leapjs-plugins/main/leap-plugins-0.1.12.min.js"></script>
<script src="src/aframe.js"></script>
<script src="node_modules/aframe-extras/dist/aframe-extras.min.js"></script>
<!-- <script src="node_modules/aframe-alongpath-" -->
<script src="node_modules/aframe-physics-system/dist/aframe-physics-system.min.js"></script>
<!-- <script src="node_modules/aframe-leap-hands/dist/aframe-leap-hands.min.js"></script> -->
<script src="src/leap.rigged-hand-0.1.7.min.js"></script>
<script src="node_modules/aframe-template-component/dist/aframe-template-component.min.js"></script>
<script src="src/main.js"></script>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<!-- START CODE -->
<a-scene leap="vr: false" id="tutorial-scene" antialias="true" embedded>
<div class="a-enter-vr"></div>
<a-assets>
<img id="floor" src="https://cdn.aframe.io/a-painter/images/floor.jpg" crossOrigin="anonymous">
<img id="skymap" src="https://cdn.aframe.io/a-painter/images/sky.jpg" crossOrigin="anonymous">
<a-asset-item id="left-hand" src="./assets/test2.gltf"></a-asset-item>
<a-asset-item id="opponent-man" src="./assets/opponentMan.gltf"></a-asset-item>
<a-asset-item id="walking-opponent" src="./assets/walking.gltf"></a-asset-item>
<!-- <audio id="song" src="./songs/ocean.mp3" autoPlay loop /> -->
<!-- <a-asset-item id="cloud1" src="./OBJ Models/Cloud_1.obj"></a-asset-item>
<a-asset-item id="cloud1-mtl" src="./OBJ Models/Cloud_1.mtl"></a-asset-item> -->
</a-assets>
<a-sky src="#skymap" geometry="thetaStart: -80"></a-sky>
<a-entity id="ground" geometry="primitive: circle; radius: 30.5" rotation="-90 0 0" material="src: #floor"></a-entity>
<a-camera id="camera" position="0 1.211 -0.155">
<a-entity
raycaster="objects: .clickable"
cursor="fuse: true; fuseTimeout: 500"
position="0 0 -0.3"
geometry="primitive: ring; radiusInner: 0.005; radiusOuter: 0.010"
material="color: green; 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 leap-hand="hand: left"></a-entity>
<a-entity leap-hand="hand: right"></a-entity>
</a-camera>
<a-entity id="opponent" gltf-model="./assets/opponentMan.gltf" scale="0.02 0.02 0.01" position="0 0.9 -0.4762045999540051">
<!-- Instruction Text -->
<a-text id="info-text" value="Look at a critical point to learn more." position="-5.563925580479001 22.351610950003447 4.58432646555616"
scale="3 3 3" text=""></a-text>
<!--Groin Circle-->
<a-circle class="clickable" groin-controller material="side:double;color:#EF2D5E;transparent:true;opacity:0.5" geometry="" position="0 10.155692288203888 1.5216280831896078"></a-circle>
<!--Eyes Circle-->
<a-circle class="clickable" eyes-controller material="side:double;color:#EF2D5E;transparent:true;opacity:0.5" geometry="radius:0.5" position="0.5717553051447145 20.343262250926585 1.2682090426037684"></a-circle>
<a-circle class="clickable" eyes-controller material="side:double;color:#EF2D5E;transparent:true;opacity:0.5" geometry="radius:0.5" position="-0.46974076527666053 20.343262250926585 1.2682090426037684"></a-circle>
<!--Knees Circle-->
<a-circle class="clickable" knees-controller material="side:double;color:#EF2D5E;transparent:true;opacity:0.5" geometry="radius:0.75" position="1.4501866444302334 6.234316376898374 2.803042930873528"></a-circle>
<a-circle class="clickable" knees-controller material="side:double;color:#EF2D5E;transparent:true;opacity:0.5" geometry="radius:0.75" position="-1.5039639852879358 6.234316376898374 2.803042930873528"></a-circle>
<!--Throat Circle-->
<a-circle class="clickable" throat-controller material="side:double;color:#EF2D5E;transparent:true;opacity:0.5" geometry="radius:0.43000000000000005" position="0 18.473394637184 1.5216280831896078"></a-circle>
<!--Nose Circle-->
<a-circle class="clickable" nose-controller material="side:double;color:#EF2D5E;transparent:true;opacity:0.5" geometry="radius:0.35" position="0 19.634951161980858 1.5216280831896078"></a-circle>
</a-entity>
</a-scene>
</body>
</html>