forked from autonome/aframe-ar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
soundsize.html
90 lines (80 loc) · 1.97 KB
/
soundsize.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>AR • A-Frame</title>
<meta name="description" content="AR • A-Frame">
<script src="aframe.js"></script>
<script src="camera.js"></script>
<!--
<script src="geolib.js"></script>
<script src="geolocation.js"></script>
-->
<style>
html, body, div, a-scene {
background-color: transparent;
}
video, img {
width: 100% !important;
max-width: 100% !important;
height: auto !important;
position: absolute;
top: 0;
left: 0;
z-index: -1000;
}
.coords {
position: absolute;
top: 0.1rem;
left: 0.1rem;
background-color: silver;
opacity: 0.5;
color: #fff;
}
.glow {
background: #527fa9;
box-shadow: inset 0 0 30px 15px #49628a;
transition: 500ms ease-in-out;
}
#duck {
visibility: hidden;
}
</style>
</head>
<body>
<a-scene id="aScene">
<!--
<a-sphere position="0 1.25 -2" radius="1.25" color="#EF2D5E"></a-sphere>
<a-box position="-1 0.5 0" rotation="0 45 0" width="1" height="1" depth="1" color="#4CC3D9"></a-box>
<a-cylinder position="1 0.75 -1" radius="0.5" height="1.5" color="#FFC65D"></a-cylinder>
<a-plane rotation="-90 0 0" position="0 0 -2" width="4" height="4" color="#7BC8A4"></a-plane>
-->
<!--
<a-camera position="0 1.8 500"></a-camera>
-->
<a-assets>
<a-asset-item id="ducky-obj" src="ducky.obj"></a-asset-item>
</a-assets>
<!--
<a-obj-model
id="duck"
src="#ducky-obj"
position="0 1200 -3000"
rotation="-210 -120 180"
scale="8 8 8"
material="color: orange">
</a-obj-model>
-->
</a-scene>
<!--
<canvas id="inputCanvas" width="320" height="240" style="display:none"></canvas>
-->
<video id="inputVideo" autoplay loop muted></video>
<!--
<div class="coords">
PLACEHOLDER
</div>
-->
<script src="soundsize.js"></script>
</body>
</html>