-
Notifications
You must be signed in to change notification settings - Fork 2
/
AframeSoundRecog.html
24 lines (21 loc) · 1.01 KB
/
AframeSoundRecog.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
<html>
<head>
<script src="https://rawgit.com/aframevr/aframe/master/dist/aframe-master.min.js"></script>
<!-- the curve component is necessary - my version has some minor changes -->
<script src="https://gftruj.github.io/webzamples/PlanetVoodoo/scroll-path/aframe-curve-component.js"></script>
<script src="https://gftruj.github.io/webzamples/PlanetVoodoo/scroll-path/scroll-path.js"></script>
</head>
<body>
<a-scene>
<!-- define a curve -->
<a-curve id="track1">
<a-curve-point position="-2 2 -3"></a-curve-point>
<a-curve-point position="0 1 -3"></a-curve-point>
<a-curve-point position="2 2 -3"></a-curve-point>
</a-curve>
<a-draw-curve curveref="#track1" material="shader: line; color: blue;"></a-draw-curve>
<!-- attach the component -->
<a-box scroll-path="curve: #track1" color="red"></a-box>
</a-scene>
</body>
</html>