-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
253 lines (205 loc) · 97.2 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<html>
<head>
<title>WebGL Sandbox</title>
<style>
video { display:none }
</style>
<!-- Stylesheet -->
<link type="text/css" href="css/common.css" rel="stylesheet" />
<!-- Common Utilities -->
<script type="text/javascript" src="https://rawgit.com/mikearmstrong001/webgl_photosphere/master/js/game-shim.js"></script>
<script type="text/javascript" src="https://rawgit.com/mikearmstrong001/webgl_photosphere/master/js/glSandbox.js"></script>
<script type="text/javascript" src="https://rawgit.com/mikearmstrong001/webgl_photosphere/master/js/webgl-debug.js"></script>
<script type="text/javascript" src="https://rawgit.com/mikearmstrong001/webgl_photosphere/master/js/gl-matrix.js"></script>
<script type="text/javascript">
var videoElement;
var shader;
var vertBuffer, indexBuffer, triCount;
var diffuse;
var persp = mat4.create();
var model = mat4.create();
var viewL = mat4.create();
var viewR = mat4.create();
var invView = mat4.create();
var modelInvView = mat4.create();
var modelInvViewPersp = mat4.create();
var invViewModel = mat4.create();
var perspInvViewModel = mat4.create();
function initScene(gl) {
// Initialize the shader
shader = createShaderProgram(gl, 'simple-vs', 'simple-fs',
['position', 'texture'], // Attributes
['diffuse', 'modelInvViewPersp'] // Uniforms
);
videoElement = document.getElementById("video");
videoElement.crossOrigin = "anonymous";
videoElement.src = "https://ls-360-media.s3.amazonaws.com/production/43a8d4005fb311e4b1342f2341d8faae/71d7cbb05fb311e4bd0f9baf31eb6ee9.mp4";
videoElement.load();
//videoElement.play();
// Set up the verticies and indices
//var vertArray = [ -0.156435, -0.987688, 0.100000, 0.368045, -0.333126, -0.148778, -0.987688, 0.148341, 0.384277, -0.268249, -0.126558, -0.987688, 0.191950, 0.408277, -0.215828, -0.091950, -0.987688, 0.226558, 0.436892, -0.177876, -0.048341, -0.987688, 0.248778, 0.467939, -0.155058, -0.000000, -0.987688, 0.256434, 0.500000, -0.147460, 0.048341, -0.987688, 0.248778, 0.532061, -0.155058, 0.091950, -0.987688, 0.226558, 0.563108, -0.177876, 0.126558, -0.987688, 0.191950, 0.591723, -0.215828, 0.148778, -0.987688, 0.148341, 0.615723, -0.268249, 0.156434, -0.987688, 0.100000, 0.631954, -0.333126, -0.309017, -0.951057, 0.100000, 0.239341, -0.302227, -0.293893, -0.951057, 0.195492, 0.288199, -0.185403, -0.250000, -0.951057, 0.281636, 0.342217, -0.100242, -0.181636, -0.951057, 0.350000, 0.396202, -0.043495, -0.095492, -0.951057, 0.393893, 0.448662, -0.011300, -0.000000, -0.951057, 0.409017, 0.500000, -0.000896, 0.095491, -0.951057, 0.393893, 0.551337, -0.011300, 0.181636, -0.951057, 0.350000, 0.603798, -0.043495, 0.250000, -0.951057, 0.281636, 0.657783, -0.100242, 0.293893, -0.951057, 0.195492, 0.711801, -0.185403, 0.309017, -0.951057, 0.100000, 0.760659, -0.302227, -0.453991, -0.891007, 0.100000, 0.117054, -0.251574, -0.431771, -0.891007, 0.240291, 0.209889, -0.098675, -0.367286, -0.891007, 0.366849, 0.295023, 0.002741, -0.266849, -0.891007, 0.467286, 0.369867, 0.065487, -0.140291, -0.891007, 0.531771, 0.436912, 0.099319, -0.000000, -0.891007, 0.553991, 0.500000, 0.109976, 0.140291, -0.891007, 0.531771, 0.563088, 0.099319, 0.266849, -0.891007, 0.467286, 0.630133, 0.065487, 0.367286, -0.891007, 0.366849, 0.704977, 0.002741, 0.431771, -0.891007, 0.240291, 0.790111, -0.098675, 0.453991, -0.891007, 0.100000, 0.882946, -0.251574, -0.587785, -0.809017, 0.100000, 0.004197, -0.182415, -0.559017, -0.809017, 0.281636, 0.147187, -0.010596, -0.475528, -0.809017, 0.445492, 0.261430, 0.094120, -0.345492, -0.809017, 0.575528, 0.352599, 0.154840, -0.181636, -0.809017, 0.659017, 0.429553, 0.186224, -0.000000, -0.809017, 0.687785, 0.500000, 0.195920, 0.181636, -0.809017, 0.659017, 0.570447, 0.186224, 0.345491, -0.809017, 0.575528, 0.647401, 0.154840, 0.475528, -0.809017, 0.445492, 0.738570, 0.094120, 0.559017, -0.809017, 0.281636, 0.852813, -0.010596, 0.587785, -0.809017, 0.100000, 0.995803, -0.182415, -0.707107, -0.707107, 0.100000, -0.096453, -0.096453, -0.672499, -0.707107, 0.318508, 0.097960, 0.077270, -0.572062, -0.707107, 0.515627, 0.237577, 0.175627, -0.415627, -0.707107, 0.672061, 0.341092, 0.229649, -0.218508, -0.707107, 0.772499, 0.424832, 0.256751, -0.000000, -0.707107, 0.807107, 0.500000, 0.265060, 0.218508, -0.707107, 0.772499, 0.575168, 0.256751, 0.415627, -0.707107, 0.672061, 0.658908, 0.229649, 0.572061, -0.707107, 0.515627, 0.762423, 0.175627, 0.672499, -0.707107, 0.318508, 0.902040, 0.077270, 0.707107, -0.707107, 0.100000, 1.096453, -0.096453, -0.809017, -0.587785, 0.100000, -0.182415, 0.004197, -0.769421, -0.587785, 0.350000, 0.060304, 0.164102, -0.654509, -0.587785, 0.575528, 0.220759, 0.249227, -0.475528, -0.587785, 0.754509, 0.333383, 0.294050, -0.250000, -0.587785, 0.869421, 0.421863, 0.316289, -0.000000, -0.587785, 0.909017, 0.500000, 0.323214, 0.250000, -0.587785, 0.869421, 0.578137, 0.316289, 0.475528, -0.587785, 0.754509, 0.666617, 0.294050, 0.654509, -0.587785, 0.575528, 0.779241, 0.249227, 0.769421, -0.587785, 0.350000, 0.939696, 0.164102, 0.809017, -0.587785, 0.100000, 1.182415, 0.004197, -0.891007, -0.453991, 0.100000, -0.251574, 0.117054, -0.847398, -0.453991, 0.375336, 0.032633, 0.249609, -0.720840, -0.453991, 0.623721, 0.209156, 0.316824, -0.523721, -0.453991, 0.820840, 0.328343, 0.351198, -0.275336, -0.453991, 0.947398, 0.420240, 0.368486, -0.000000, -0.453991, 0.991007, 0.500000, 0.374156, 0.275336, -0.453991, 0.947398, 0.579760, 0.368486, 0.523721, -0.453991, 0.820840, 0.671657, 0.351198, 0.720839, -0.453991, 0.623721, 0.790844, 0.316824, 0.847398, -0.453991, 0.375336, 0.967367, 0.249609, 0.891007, -0.453991, 0.100000, 1.251574, 0.117054, -0.951057, -0.309017, 0.100000, -0.302227, 0.239341, -0.904509, -0.309017, 0.393893, 0.013724, 0.333869, -0.769421, -0.309017, 0.659017, 0.201581, 0.380148, -0.559017, -0.309017, 0.869421, 0.325281, 0.403418, -0.293893, -0.309017, 1.004509, 0.419683, 0.415550, -0.000000, -0.309017, 1.051057, 0.500000, 0.419819, 0.293893, -0.309017, 1.004509, 0.580317, 0.415550, 0.559017, -0.309017, 0.869421, 0.674719, 0.403418, 0.769421, -0.309017, 0.659017, 0.798419, 0.380148, 0.904509, -0.309017, 0.393893, 0.986276, 0.333869, 0.951057, -0.309017, 0.100000, 1.302227, 0.239341, -0.987689, -0.156434, 0.100000, -0.333126, 0.368046, -0.939348, -0.156434, 0.405213, 0.002718, 0.417185, -0.799057, -0.156434, 0.680549, 0.197303, 0.440740, -0.580549, -0.156434, 0.899057, 0.323694, 0.452493, -0.305213, -0.156434, 1.039348, 0.419735, 0.458861, -0.000000, -0.156434, 1.087688, 0.500000, 0.460434, 0.305212, -0.156434, 1.039348, 0.580265, 0.458861, 0.580549, -0.156434, 0.899057, 0.676306, 0.452493, 0.799057, -0.156434, 0.680549, 0.802697, 0.440740, 0.939348, -0.156434, 0.405212, 0.997283, 0.417185, 0.987688, -0.156434, 0.100000, 1.333126, 0.368046, -1.000000, 0.000000, 0.100000, -0.343511, 0.500000, -0.951057, 0.000000, 0.409017, -0.000896, 0.500000, -0.809017, 0.000000, 0.687785, 0.195920, 0.500000, -0.587785, 0.000000, 0.909017, 0.323214, 0.500000, -0.309017, 0.000000, 1.051057, 0.419819, 0.500000, -0.000000, 0.000000, 1.100000, 0.500000, 0.500000, 0.309017, 0.000000, 1.051057, 0.580181, 0.500000, 0.587785, 0.000000, 0.909017, 0.676786, 0.500000, 0.809017, 0.000000, 0.687785, 0.804080, 0.500000, 0.951057, 0.000000, 0.409017, 1.000896, 0.500000, 1.000000, 0.000000, 0.100000, 1.343511, 0.500000, -0.987689, 0.156434, 0.100000, -0.333126, 0.631954, -0.939348, 0.156434, 0.405213, 0.002718, 0.582815, -0.799057, 0.156434, 0.680549, 0.197303, 0.559260, -0.580549, 0.156434, 0.899057, 0.323694, 0.547507, -0.305213, 0.156434, 1.039348, 0.419735, 0.541139, -0.000000, 0.156434, 1.087688, 0.500000, 0.539566, 0.305212, 0.156434, 1.039348, 0.580265, 0.541139, 0.580549, 0.156434, 0.899057, 0.676306, 0.547507, 0.799057, 0.156434, 0.680549, 0.802697, 0.559260, 0.939348, 0.156434, 0.405212, 0.997283, 0.582815, 0.987688, 0.156434, 0.100000, 1.333126, 0.631954, -0.951057, 0.309017, 0.100000, -0.302227, 0.760659, -0.904509, 0.309017, 0.393893, 0.013724, 0.666131, -0.769421, 0.309017, 0.659017, 0.201581, 0.619852, -0.559017, 0.309017, 0.869421, 0.325281, 0.596582, -0.293893, 0.309017, 1.004509, 0.419683, 0.584450, -0.000000, 0.309017, 1.051057, 0.500000, 0.580181, 0.293893, 0.309017, 1.004509, 0.580317, 0.584450, 0.559017, 0.309017, 0.869421, 0.674719, 0.596582, 0.769421, 0.309017, 0.659017, 0.798419, 0.619852, 0.904509, 0.309017, 0.393893, 0.986276, 0.666131, 0.951057, 0.309017, 0.100000, 1.302227, 0.760659, -0.891007, 0.453991, 0.100000, -0.251574, 0.882946, -0.847398, 0.453991, 0.375336, 0.032633, 0.750391, -0.720840, 0.453991, 0.623721, 0.209156, 0.683176, -0.523721, 0.453991, 0.820840, 0.328343, 0.648802, -0.275336, 0.453991, 0.947398, 0.420240, 0.631514, -0.000000, 0.453991, 0.991007, 0.500000, 0.625844, 0.275336, 0.453991, 0.947398, 0.579760, 0.631514, 0.523721, 0.453991, 0.820840, 0.671657, 0.648802, 0.720839, 0.453991, 0.623721, 0.790844, 0.683176, 0.847398, 0.453991, 0.375336, 0.967367, 0.750391, 0.891007, 0.453991, 0.100000, 1.251574, 0.882946, -0.809017, 0.587785, 0.100000, -0.182415, 0.995803, -0.769421, 0.587785, 0.350000, 0.060304, 0.835898, -0.654509, 0.587785, 0.575528, 0.220759, 0.750773, -0.475528, 0.587785, 0.754509, 0.333383, 0.705950, -0.250000, 0.587785, 0.869421, 0.421863, 0.683711, -0.000000, 0.587785, 0.909017, 0.500000, 0.676786, 0.250000, 0.587785, 0.869421, 0.578137, 0.683711, 0.475528, 0.587785, 0.754509, 0.666617, 0.705950, 0.654509, 0.587785, 0.575528, 0.779241, 0.750773, 0.769421, 0.587785, 0.350000, 0.939696, 0.835898, 0.809017, 0.587785, 0.100000, 1.182415, 0.995803, -0.707107, 0.707107, 0.100000, -0.096453, 1.096453, -0.672499, 0.707107, 0.318508, 0.097960, 0.922730, -0.572062, 0.707107, 0.515627, 0.237577, 0.824373, -0.415627, 0.707107, 0.672061, 0.341092, 0.770351, -0.218508, 0.707107, 0.772499, 0.424832, 0.743249, -0.000000, 0.707107, 0.807107, 0.500000, 0.734940, 0.218508, 0.707107, 0.772499, 0.575168, 0.743249, 0.415627, 0.707107, 0.672061, 0.658908, 0.770351, 0.572061, 0.707107, 0.515627, 0.762423, 0.824373, 0.672499, 0.707107, 0.318508, 0.902040, 0.922730, 0.707107, 0.707107, 0.100000, 1.096453, 1.096453, -0.587785, 0.809017, 0.100000, 0.004197, 1.182415, -0.559017, 0.809017, 0.281636, 0.147187, 1.010596, -0.475528, 0.809017, 0.445492, 0.261430, 0.905880, -0.345492, 0.809017, 0.575528, 0.352599, 0.845160, -0.181636, 0.809017, 0.659017, 0.429553, 0.813776, -0.000000, 0.809017, 0.687785, 0.500000, 0.804080, 0.181636, 0.809017, 0.659017, 0.570447, 0.813776, 0.345491, 0.809017, 0.575528, 0.647401, 0.845160, 0.475528, 0.809017, 0.445492, 0.738570, 0.905880, 0.559017, 0.809017, 0.281636, 0.852813, 1.010596, 0.587785, 0.809017, 0.100000, 0.995803, 1.182415, -0.453991, 0.891007, 0.100000, 0.117054, 1.251574, -0.431771, 0.891007, 0.240291, 0.209889, 1.098675, -0.367286, 0.891007, 0.366849, 0.295023, 0.997259, -0.266849, 0.891007, 0.467286, 0.369867, 0.934513, -0.140291, 0.891007, 0.531771, 0.436912, 0.900681, -0.000000, 0.891007, 0.553991, 0.500000, 0.890024, 0.140291, 0.891007, 0.531771, 0.563088, 0.900681, 0.266849, 0.891007, 0.467286, 0.630133, 0.934513, 0.367286, 0.891007, 0.366849, 0.704977, 0.997259, 0.431771, 0.891007, 0.240291, 0.790111, 1.098675, 0.453991, 0.891007, 0.100000, 0.882946, 1.251574, -0.309017, 0.951057, 0.100000, 0.239341, 1.302227, -0.293893, 0.951057, 0.195492, 0.288199, 1.185403, -0.250000, 0.951057, 0.281636, 0.342217, 1.100242, -0.181636, 0.951057, 0.350000, 0.396202, 1.043495, -0.095492, 0.951057, 0.393893, 0.448662, 1.011300, -0.000000, 0.951057, 0.409017, 0.500000, 1.000896, 0.095491, 0.951057, 0.393893, 0.551337, 1.011300, 0.181636, 0.951057, 0.350000, 0.603798, 1.043495, 0.250000, 0.951057, 0.281636, 0.657783, 1.100242, 0.293893, 0.951057, 0.195492, 0.711801, 1.185403, 0.309017, 0.951057, 0.100000, 0.760659, 1.302227, -0.156435, 0.987688, 0.100000, 0.368045, 1.333126, -0.148778, 0.987688, 0.148341, 0.384277, 1.268249, -0.126558, 0.987688, 0.191950, 0.408277, 1.215828, -0.091950, 0.987688, 0.226558, 0.436892, 1.177876, -0.048341, 0.987688, 0.248778, 0.467939, 1.155058, -0.000000, 0.987688, 0.256434, 0.500000, 1.147460, 0.048341, 0.987688, 0.248778, 0.532061, 1.155058, 0.091950, 0.987688, 0.226558, 0.563108, 1.177876, 0.126558, 0.987688, 0.191950, 0.591723, 1.215828, 0.148778, 0.987688, 0.148341, 0.615723, 1.268249, 0.156434, 0.987688, 0.100000, 0.631954, 1.333126, 0.000000, -1.000000, 0.100000, 0.500000, -0.343511, 0.000000, 1.000000, 0.100000, 0.500000, 1.343511 ];
//var indexArray = [0, 11, 1, 11, 12, 1, 1, 12, 2, 12, 13, 2, 2, 13, 3, 13, 14, 3, 3, 14, 4, 14, 15, 4, 4, 15, 5, 15, 16, 5, 5, 16, 6, 16, 17, 6, 6, 17, 7, 17, 18, 7, 7, 18, 8, 18, 19, 8, 8, 19, 9, 19, 20, 9, 9, 20, 10, 20, 21, 10, 11, 22, 12, 22, 23, 12, 12, 23, 13, 23, 24, 13, 13, 24, 14, 24, 25, 14, 14, 25, 15, 25, 26, 15, 15, 26, 16, 26, 27, 16, 16, 27, 17, 27, 28, 17, 17, 28, 18, 28, 29, 18, 18, 29, 19, 29, 30, 19, 19, 30, 20, 30, 31, 20, 20, 31, 21, 31, 32, 21, 22, 33, 23, 33, 34, 23, 23, 34, 24, 34, 35, 24, 24, 35, 25, 35, 36, 25, 25, 36, 26, 36, 37, 26, 26, 37, 27, 37, 38, 27, 27, 38, 28, 38, 39, 28, 28, 39, 29, 39, 40, 29, 29, 40, 30, 40, 41, 30, 30, 41, 31, 41, 42, 31, 31, 42, 32, 42, 43, 32, 33, 44, 34, 44, 45, 34, 34, 45, 35, 45, 46, 35, 35, 46, 36, 46, 47, 36, 36, 47, 37, 47, 48, 37, 37, 48, 38, 48, 49, 38, 38, 49, 39, 49, 50, 39, 39, 50, 40, 50, 51, 40, 40, 51, 41, 51, 52, 41, 41, 52, 42, 52, 53, 42, 42, 53, 43, 53, 54, 43, 44, 55, 45, 55, 56, 45, 45, 56, 46, 56, 57, 46, 46, 57, 47, 57, 58, 47, 47, 58, 48, 58, 59, 48, 48, 59, 49, 59, 60, 49, 49, 60, 50, 60, 61, 50, 50, 61, 51, 61, 62, 51, 51, 62, 52, 62, 63, 52, 52, 63, 53, 63, 64, 53, 53, 64, 54, 64, 65, 54, 55, 66, 56, 66, 67, 56, 56, 67, 57, 67, 68, 57, 57, 68, 58, 68, 69, 58, 58, 69, 59, 69, 70, 59, 59, 70, 60, 70, 71, 60, 60, 71, 61, 71, 72, 61, 61, 72, 62, 72, 73, 62, 62, 73, 63, 73, 74, 63, 63, 74, 64, 74, 75, 64, 64, 75, 65, 75, 76, 65, 66, 77, 67, 77, 78, 67, 67, 78, 68, 78, 79, 68, 68, 79, 69, 79, 80, 69, 69, 80, 70, 80, 81, 70, 70, 81, 71, 81, 82, 71, 71, 82, 72, 82, 83, 72, 72, 83, 73, 83, 84, 73, 73, 84, 74, 84, 85, 74, 74, 85, 75, 85, 86, 75, 75, 86, 76, 86, 87, 76, 77, 88, 78, 88, 89, 78, 78, 89, 79, 89, 90, 79, 79, 90, 80, 90, 91, 80, 80, 91, 81, 91, 92, 81, 81, 92, 82, 92, 93, 82, 82, 93, 83, 93, 94, 83, 83, 94, 84, 94, 95, 84, 84, 95, 85, 95, 96, 85, 85, 96, 86, 96, 97, 86, 86, 97, 87, 97, 98, 87, 88, 99, 89, 99, 100, 89, 89, 100, 90, 100, 101, 90, 90, 101, 91, 101, 102, 91, 91, 102, 92, 102, 103, 92, 92, 103, 93, 103, 104, 93, 93, 104, 94, 104, 105, 94, 94, 105, 95, 105, 106, 95, 95, 106, 96, 106, 107, 96, 96, 107, 97, 107, 108, 97, 97, 108, 98, 108, 109, 98, 99, 110, 100, 110, 111, 100, 100, 111, 101, 111, 112, 101, 101, 112, 102, 112, 113, 102, 102, 113, 103, 113, 114, 103, 103, 114, 104, 114, 115, 104, 104, 115, 105, 115, 116, 105, 105, 116, 106, 116, 117, 106, 106, 117, 107, 117, 118, 107, 107, 118, 108, 118, 119, 108, 108, 119, 109, 119, 120, 109, 110, 121, 111, 121, 122, 111, 111, 122, 112, 122, 123, 112, 112, 123, 113, 123, 124, 113, 113, 124, 114, 124, 125, 114, 114, 125, 115, 125, 126, 115, 115, 126, 116, 126, 127, 116, 116, 127, 117, 127, 128, 117, 117, 128, 118, 128, 129, 118, 118, 129, 119, 129, 130, 119, 119, 130, 120, 130, 131, 120, 121, 132, 122, 132, 133, 122, 122, 133, 123, 133, 134, 123, 123, 134, 124, 134, 135, 124, 124, 135, 125, 135, 136, 125, 125, 136, 126, 136, 137, 126, 126, 137, 127, 137, 138, 127, 127, 138, 128, 138, 139, 128, 128, 139, 129, 139, 140, 129, 129, 140, 130, 140, 141, 130, 130, 141, 131, 141, 142, 131, 132, 143, 133, 143, 144, 133, 133, 144, 134, 144, 145, 134, 134, 145, 135, 145, 146, 135, 135, 146, 136, 146, 147, 136, 136, 147, 137, 147, 148, 137, 137, 148, 138, 148, 149, 138, 138, 149, 139, 149, 150, 139, 139, 150, 140, 150, 151, 140, 140, 151, 141, 151, 152, 141, 141, 152, 142, 152, 153, 142, 143, 154, 144, 154, 155, 144, 144, 155, 145, 155, 156, 145, 145, 156, 146, 156, 157, 146, 146, 157, 147, 157, 158, 147, 147, 158, 148, 158, 159, 148, 148, 159, 149, 159, 160, 149, 149, 160, 150, 160, 161, 150, 150, 161, 151, 161, 162, 151, 151, 162, 152, 162, 163, 152, 152, 163, 153, 163, 164, 153, 154, 165, 155, 165, 166, 155, 155, 166, 156, 166, 167, 156, 156, 167, 157, 167, 168, 157, 157, 168, 158, 168, 169, 158, 158, 169, 159, 169, 170, 159, 159, 170, 160, 170, 171, 160, 160, 171, 161, 171, 172, 161, 161, 172, 162, 172, 173, 162, 162, 173, 163, 173, 174, 163, 163, 174, 164, 174, 175, 164, 165, 176, 166, 176, 177, 166, 166, 177, 167, 177, 178, 167, 167, 178, 168, 178, 179, 168, 168, 179, 169, 179, 180, 169, 169, 180, 170, 180, 181, 170, 170, 181, 171, 181, 182, 171, 171, 182, 172, 182, 183, 172, 172, 183, 173, 183, 184, 173, 173, 184, 174, 184, 185, 174, 174, 185, 175, 185, 186, 175, 176, 187, 177, 187, 188, 177, 177, 188, 178, 188, 189, 178, 178, 189, 179, 189, 190, 179, 179, 190, 180, 190, 191, 180, 180, 191, 181, 191, 192, 181, 181, 192, 182, 192, 193, 182, 182, 193, 183, 193, 194, 183, 183, 194, 184, 194, 195, 184, 184, 195, 185, 195, 196, 185, 185, 196, 186, 196, 197, 186, 187, 198, 188, 198, 199, 188, 188, 199, 189, 199, 200, 189, 189, 200, 190, 200, 201, 190, 190, 201, 191, 201, 202, 191, 191, 202, 192, 202, 203, 192, 192, 203, 193, 203, 204, 193, 193, 204, 194, 204, 205, 194, 194, 205, 195, 205, 206, 195, 195, 206, 196, 206, 207, 196, 196, 207, 197, 207, 208, 197, 1, 209, 0, 2, 209, 1, 3, 209, 2, 4, 209, 3, 5, 209, 4, 6, 209, 5, 7, 209, 6, 8, 209, 7, 9, 209, 8, 10, 209, 9, 198, 210, 199, 199, 210, 200, 200, 210, 201, 201, 210, 202, 202, 210, 203, 203, 210, 204, 204, 210, 205, 205, 210, 206, 206, 210, 207, 207, 210, 208];
//var vertArray = [-0.15643499999999999, -0.98768800000000001, 0.0, 0.45000000000000001, 0.050000000000000003, -0.30901699999999999, -0.95105700000000004, 0.0, 0.45000000000000001, 0.10000000000000001, -0.14877799999999999, -0.98768800000000001, 0.048341000000000002, 0.5, 0.050000000000000003, -0.29389300000000002, -0.95105700000000004, 0.095491999999999994, 0.5, 0.10000000000000001, -0.126558, -0.98768800000000001, 0.091950000000000004, 0.55000000000000004, 0.050000000000000003, -0.25, -0.95105700000000004, 0.18163599999999999, 0.55000000000000004, 0.10000000000000001, -0.091950000000000004, -0.98768800000000001, 0.126558, 0.59999999999999998, 0.050000000000000003, -0.18163599999999999, -0.95105700000000004, 0.25, 0.59999999999999998, 0.10000000000000001, -0.048341000000000002, -0.98768800000000001, 0.14877799999999999, 0.65000000000000002, 0.050000000000000003, -0.095491999999999994, -0.95105700000000004, 0.29389300000000002, 0.65000000000000002, 0.10000000000000001, 0.0, -0.98768800000000001, 0.15643399999999999, 0.69999999999999996, 0.050000000000000003, 0.0, -0.95105700000000004, 0.30901699999999999, 0.69999999999999996, 0.10000000000000001, 0.048341000000000002, -0.98768800000000001, 0.14877799999999999, 0.75, 0.050000000000000003, 0.095491000000000006, -0.95105700000000004, 0.29389300000000002, 0.75, 0.10000000000000001, 0.091950000000000004, -0.98768800000000001, 0.126558, 0.80000000000000004, 0.050000000000000003, 0.18163599999999999, -0.95105700000000004, 0.25, 0.80000000000000004, 0.10000000000000001, 0.126558, -0.98768800000000001, 0.091950000000000004, 0.84999999999999998, 0.050000000000000003, 0.25, -0.95105700000000004, 0.18163599999999999, 0.84999999999999998, 0.10000000000000001, 0.14877799999999999, -0.98768800000000001, 0.048341000000000002, 0.90000000000000002, 0.050000000000000003, 0.29389300000000002, -0.95105700000000004, 0.095491999999999994, 0.90000000000000002, 0.10000000000000001, 0.15643399999999999, -0.98768800000000001, 0.0, 0.94999999999999996, 0.050000000000000003, 0.30901699999999999, -0.95105700000000004, 0.0, 0.94999999999999996, 0.10000000000000001, -0.45399099999999998, -0.89100699999999999, 0.0, 0.45000000000000001, 0.14999999999999999, -0.43177100000000002, -0.89100699999999999, 0.140291, 0.5, 0.14999999999999999, -0.367286, -0.89100699999999999, 0.266849, 0.55000000000000004, 0.14999999999999999, -0.266849, -0.89100699999999999, 0.367286, 0.59999999999999998, 0.14999999999999999, -0.140291, -0.89100699999999999, 0.43177100000000002, 0.65000000000000002, 0.14999999999999999, 0.0, -0.89100699999999999, 0.45399099999999998, 0.69999999999999996, 0.14999999999999999, 0.140291, -0.89100699999999999, 0.43177100000000002, 0.75, 0.14999999999999999, 0.266849, -0.89100699999999999, 0.367286, 0.80000000000000004, 0.14999999999999999, 0.367286, -0.89100699999999999, 0.266849, 0.84999999999999998, 0.14999999999999999, 0.43177100000000002, -0.89100699999999999, 0.140291, 0.90000000000000002, 0.14999999999999999, 0.45399099999999998, -0.89100699999999999, 0.0, 0.94999999999999996, 0.14999999999999999, -0.587785, -0.80901699999999999, 0.0, 0.45000000000000001, 0.20000000000000001, -0.55901699999999999, -0.80901699999999999, 0.18163599999999999, 0.5, 0.20000000000000001, -0.47552800000000001, -0.80901699999999999, 0.34549200000000002, 0.55000000000000004, 0.20000000000000001, -0.34549200000000002, -0.80901699999999999, 0.47552800000000001, 0.59999999999999998, 0.20000000000000001, -0.18163599999999999, -0.80901699999999999, 0.55901699999999999, 0.65000000000000002, 0.20000000000000001, 0.0, -0.80901699999999999, 0.587785, 0.69999999999999996, 0.20000000000000001, 0.18163599999999999, -0.80901699999999999, 0.55901699999999999, 0.75, 0.20000000000000001, 0.34549099999999999, -0.80901699999999999, 0.47552800000000001, 0.80000000000000004, 0.20000000000000001, 0.47552800000000001, -0.80901699999999999, 0.34549200000000002, 0.84999999999999998, 0.20000000000000001, 0.55901699999999999, -0.80901699999999999, 0.18163599999999999, 0.90000000000000002, 0.20000000000000001, 0.587785, -0.80901699999999999, 0.0, 0.94999999999999996, 0.20000000000000001, -0.70710700000000004, -0.70710700000000004, 0.0, 0.45000000000000001, 0.25, -0.67249899999999996, -0.70710700000000004, 0.21850800000000001, 0.5, 0.25, -0.57206199999999996, -0.70710700000000004, 0.41562700000000002, 0.55000000000000004, 0.25, -0.41562700000000002, -0.70710700000000004, 0.57206100000000004, 0.59999999999999998, 0.25, -0.21850800000000001, -0.70710700000000004, 0.67249899999999996, 0.65000000000000002, 0.25, 0.0, -0.70710700000000004, 0.70710700000000004, 0.69999999999999996, 0.25, 0.21850800000000001, -0.70710700000000004, 0.67249899999999996, 0.75, 0.25, 0.41562700000000002, -0.70710700000000004, 0.57206100000000004, 0.80000000000000004, 0.25, 0.57206100000000004, -0.70710700000000004, 0.41562700000000002, 0.84999999999999998, 0.25, 0.67249899999999996, -0.70710700000000004, 0.21850800000000001, 0.90000000000000002, 0.25, 0.70710700000000004, -0.70710700000000004, 0.0, 0.94999999999999996, 0.25, -0.80901699999999999, -0.587785, 0.0, 0.45000000000000001, 0.29999999999999999, -0.76942100000000002, -0.587785, 0.25, 0.5, 0.29999999999999999, -0.65450900000000001, -0.587785, 0.47552800000000001, 0.55000000000000004, 0.29999999999999999, -0.47552800000000001, -0.587785, 0.65450900000000001, 0.59999999999999998, 0.29999999999999999, -0.25, -0.587785, 0.76942100000000002, 0.65000000000000002, 0.29999999999999999, 0.0, -0.587785, 0.80901699999999999, 0.69999999999999996, 0.29999999999999999, 0.25, -0.587785, 0.76942100000000002, 0.75, 0.29999999999999999, 0.47552800000000001, -0.587785, 0.65450900000000001, 0.80000000000000004, 0.29999999999999999, 0.65450900000000001, -0.587785, 0.47552800000000001, 0.84999999999999998, 0.29999999999999999, 0.76942100000000002, -0.587785, 0.25, 0.90000000000000002, 0.29999999999999999, 0.80901699999999999, -0.587785, 0.0, 0.94999999999999996, 0.29999999999999999, -0.89100699999999999, -0.45399099999999998, 0.0, 0.45000000000000001, 0.34999999999999998, -0.84739799999999998, -0.45399099999999998, 0.27533600000000003, 0.5, 0.34999999999999998, -0.72084000000000004, -0.45399099999999998, 0.52372099999999999, 0.55000000000000004, 0.34999999999999998, -0.52372099999999999, -0.45399099999999998, 0.72084000000000004, 0.59999999999999998, 0.34999999999999998, -0.27533600000000003, -0.45399099999999998, 0.84739799999999998, 0.65000000000000002, 0.34999999999999998, 0.0, -0.45399099999999998, 0.89100699999999999, 0.69999999999999996, 0.34999999999999998, 0.27533600000000003, -0.45399099999999998, 0.84739799999999998, 0.75, 0.34999999999999998, 0.52372099999999999, -0.45399099999999998, 0.72084000000000004, 0.80000000000000004, 0.34999999999999998, 0.72083900000000001, -0.45399099999999998, 0.52372099999999999, 0.84999999999999998, 0.34999999999999998, 0.84739799999999998, -0.45399099999999998, 0.27533600000000003, 0.90000000000000002, 0.34999999999999998, 0.89100699999999999, -0.45399099999999998, 0.0, 0.94999999999999996, 0.34999999999999998, -0.95105700000000004, -0.30901699999999999, 0.0, 0.45000000000000001, 0.40000000000000002, -0.90450900000000001, -0.30901699999999999, 0.29389300000000002, 0.5, 0.40000000000000002, -0.76942100000000002, -0.30901699999999999, 0.55901699999999999, 0.55000000000000004, 0.40000000000000002, -0.55901699999999999, -0.30901699999999999, 0.76942100000000002, 0.59999999999999998, 0.40000000000000002, -0.29389300000000002, -0.30901699999999999, 0.90450900000000001, 0.65000000000000002, 0.40000000000000002, 0.0, -0.30901699999999999, 0.95105700000000004, 0.69999999999999996, 0.40000000000000002, 0.29389300000000002, -0.30901699999999999, 0.90450900000000001, 0.75, 0.40000000000000002, 0.55901699999999999, -0.30901699999999999, 0.76942100000000002, 0.80000000000000004, 0.40000000000000002, 0.76942100000000002, -0.30901699999999999, 0.55901699999999999, 0.84999999999999998, 0.40000000000000002, 0.90450900000000001, -0.30901699999999999, 0.29389300000000002, 0.90000000000000002, 0.40000000000000002, 0.95105700000000004, -0.30901699999999999, 0.0, 0.94999999999999996, 0.40000000000000002, -0.98768900000000004, -0.15643399999999999, 0.0, 0.45000000000000001, 0.45000000000000001, -0.93934799999999996, -0.15643399999999999, 0.30521300000000001, 0.5, 0.45000000000000001, -0.79905700000000002, -0.15643399999999999, 0.58054899999999998, 0.55000000000000004, 0.45000000000000001, -0.58054899999999998, -0.15643399999999999, 0.79905700000000002, 0.59999999999999998, 0.45000000000000001, -0.30521300000000001, -0.15643399999999999, 0.93934799999999996, 0.65000000000000002, 0.45000000000000001, 0.0, -0.15643399999999999, 0.98768800000000001, 0.69999999999999996, 0.45000000000000001, 0.30521199999999998, -0.15643399999999999, 0.93934799999999996, 0.75, 0.45000000000000001, 0.58054899999999998, -0.15643399999999999, 0.79905700000000002, 0.80000000000000004, 0.45000000000000001, 0.79905700000000002, -0.15643399999999999, 0.58054899999999998, 0.84999999999999998, 0.45000000000000001, 0.93934799999999996, -0.15643399999999999, 0.30521199999999998, 0.90000000000000002, 0.45000000000000001, 0.98768800000000001, -0.15643399999999999, 0.0, 0.94999999999999996, 0.45000000000000001, -1.0, 0.0, 0.0, 0.45000000000000001, 0.5, -0.95105700000000004, 0.0, 0.30901699999999999, 0.5, 0.5, -0.80901699999999999, 0.0, 0.587785, 0.55000000000000004, 0.5, -0.587785, 0.0, 0.80901699999999999, 0.59999999999999998, 0.5, -0.30901699999999999, 0.0, 0.95105700000000004, 0.65000000000000002, 0.5, 0.0, 0.0, 1.0, 0.69999999999999996, 0.5, 0.30901699999999999, 0.0, 0.95105700000000004, 0.75, 0.5, 0.587785, 0.0, 0.80901699999999999, 0.80000000000000004, 0.5, 0.80901699999999999, 0.0, 0.587785, 0.84999999999999998, 0.5, 0.95105700000000004, 0.0, 0.30901699999999999, 0.90000000000000002, 0.5, 1.0, 0.0, 0.0, 0.94999999999999996, 0.5, -0.98768900000000004, 0.15643399999999999, 0.0, 0.45000000000000001, 0.55000000000000004, -0.93934799999999996, 0.15643399999999999, 0.30521300000000001, 0.5, 0.55000000000000004, -0.79905700000000002, 0.15643399999999999, 0.58054899999999998, 0.55000000000000004, 0.55000000000000004, -0.58054899999999998, 0.15643399999999999, 0.79905700000000002, 0.59999999999999998, 0.55000000000000004, -0.30521300000000001, 0.15643399999999999, 0.93934799999999996, 0.65000000000000002, 0.55000000000000004, 0.0, 0.15643399999999999, 0.98768800000000001, 0.69999999999999996, 0.55000000000000004, 0.30521199999999998, 0.15643399999999999, 0.93934799999999996, 0.75, 0.55000000000000004, 0.58054899999999998, 0.15643399999999999, 0.79905700000000002, 0.80000000000000004, 0.55000000000000004, 0.79905700000000002, 0.15643399999999999, 0.58054899999999998, 0.84999999999999998, 0.55000000000000004, 0.93934799999999996, 0.15643399999999999, 0.30521199999999998, 0.90000000000000002, 0.55000000000000004, 0.98768800000000001, 0.15643399999999999, 0.0, 0.94999999999999996, 0.55000000000000004, -0.95105700000000004, 0.30901699999999999, 0.0, 0.45000000000000001, 0.59999999999999998, -0.90450900000000001, 0.30901699999999999, 0.29389300000000002, 0.5, 0.59999999999999998, -0.76942100000000002, 0.30901699999999999, 0.55901699999999999, 0.55000000000000004, 0.59999999999999998, -0.55901699999999999, 0.30901699999999999, 0.76942100000000002, 0.59999999999999998, 0.59999999999999998, -0.29389300000000002, 0.30901699999999999, 0.90450900000000001, 0.65000000000000002, 0.59999999999999998, 0.0, 0.30901699999999999, 0.95105700000000004, 0.69999999999999996, 0.59999999999999998, 0.29389300000000002, 0.30901699999999999, 0.90450900000000001, 0.75, 0.59999999999999998, 0.55901699999999999, 0.30901699999999999, 0.76942100000000002, 0.80000000000000004, 0.59999999999999998, 0.76942100000000002, 0.30901699999999999, 0.55901699999999999, 0.84999999999999998, 0.59999999999999998, 0.90450900000000001, 0.30901699999999999, 0.29389300000000002, 0.90000000000000002, 0.59999999999999998, 0.95105700000000004, 0.30901699999999999, 0.0, 0.94999999999999996, 0.59999999999999998, -0.89100699999999999, 0.45399099999999998, 0.0, 0.45000000000000001, 0.65000000000000002, -0.84739799999999998, 0.45399099999999998, 0.27533600000000003, 0.5, 0.65000000000000002, -0.72084000000000004, 0.45399099999999998, 0.52372099999999999, 0.55000000000000004, 0.65000000000000002, -0.52372099999999999, 0.45399099999999998, 0.72084000000000004, 0.59999999999999998, 0.65000000000000002, -0.27533600000000003, 0.45399099999999998, 0.84739799999999998, 0.65000000000000002, 0.65000000000000002, 0.0, 0.45399099999999998, 0.89100699999999999, 0.69999999999999996, 0.65000000000000002, 0.27533600000000003, 0.45399099999999998, 0.84739799999999998, 0.75, 0.65000000000000002, 0.52372099999999999, 0.45399099999999998, 0.72084000000000004, 0.80000000000000004, 0.65000000000000002, 0.72083900000000001, 0.45399099999999998, 0.52372099999999999, 0.84999999999999998, 0.65000000000000002, 0.84739799999999998, 0.45399099999999998, 0.27533600000000003, 0.90000000000000002, 0.65000000000000002, 0.89100699999999999, 0.45399099999999998, 0.0, 0.94999999999999996, 0.65000000000000002, -0.80901699999999999, 0.587785, 0.0, 0.45000000000000001, 0.69999999999999996, -0.76942100000000002, 0.587785, 0.25, 0.5, 0.69999999999999996, -0.65450900000000001, 0.587785, 0.47552800000000001, 0.55000000000000004, 0.69999999999999996, -0.47552800000000001, 0.587785, 0.65450900000000001, 0.59999999999999998, 0.69999999999999996, -0.25, 0.587785, 0.76942100000000002, 0.65000000000000002, 0.69999999999999996, 0.0, 0.587785, 0.80901699999999999, 0.69999999999999996, 0.69999999999999996, 0.25, 0.587785, 0.76942100000000002, 0.75, 0.69999999999999996, 0.47552800000000001, 0.587785, 0.65450900000000001, 0.80000000000000004, 0.69999999999999996, 0.65450900000000001, 0.587785, 0.47552800000000001, 0.84999999999999998, 0.69999999999999996, 0.76942100000000002, 0.587785, 0.25, 0.90000000000000002, 0.69999999999999996, 0.80901699999999999, 0.587785, 0.0, 0.94999999999999996, 0.69999999999999996, -0.70710700000000004, 0.70710700000000004, 0.0, 0.45000000000000001, 0.75, -0.67249899999999996, 0.70710700000000004, 0.21850800000000001, 0.5, 0.75, -0.57206199999999996, 0.70710700000000004, 0.41562700000000002, 0.55000000000000004, 0.75, -0.41562700000000002, 0.70710700000000004, 0.57206100000000004, 0.59999999999999998, 0.75, -0.21850800000000001, 0.70710700000000004, 0.67249899999999996, 0.65000000000000002, 0.75, 0.0, 0.70710700000000004, 0.70710700000000004, 0.69999999999999996, 0.75, 0.21850800000000001, 0.70710700000000004, 0.67249899999999996, 0.75, 0.75, 0.41562700000000002, 0.70710700000000004, 0.57206100000000004, 0.80000000000000004, 0.75, 0.57206100000000004, 0.70710700000000004, 0.41562700000000002, 0.84999999999999998, 0.75, 0.67249899999999996, 0.70710700000000004, 0.21850800000000001, 0.90000000000000002, 0.75, 0.70710700000000004, 0.70710700000000004, 0.0, 0.94999999999999996, 0.75, -0.587785, 0.80901699999999999, 0.0, 0.45000000000000001, 0.80000000000000004, -0.55901699999999999, 0.80901699999999999, 0.18163599999999999, 0.5, 0.80000000000000004, -0.47552800000000001, 0.80901699999999999, 0.34549200000000002, 0.55000000000000004, 0.80000000000000004, -0.34549200000000002, 0.80901699999999999, 0.47552800000000001, 0.59999999999999998, 0.80000000000000004, -0.18163599999999999, 0.80901699999999999, 0.55901699999999999, 0.65000000000000002, 0.80000000000000004, 0.0, 0.80901699999999999, 0.587785, 0.69999999999999996, 0.80000000000000004, 0.18163599999999999, 0.80901699999999999, 0.55901699999999999, 0.75, 0.80000000000000004, 0.34549099999999999, 0.80901699999999999, 0.47552800000000001, 0.80000000000000004, 0.80000000000000004, 0.47552800000000001, 0.80901699999999999, 0.34549200000000002, 0.84999999999999998, 0.80000000000000004, 0.55901699999999999, 0.80901699999999999, 0.18163599999999999, 0.90000000000000002, 0.80000000000000004, 0.587785, 0.80901699999999999, 0.0, 0.94999999999999996, 0.80000000000000004, -0.45399099999999998, 0.89100699999999999, 0.0, 0.45000000000000001, 0.84999999999999998, -0.43177100000000002, 0.89100699999999999, 0.140291, 0.5, 0.84999999999999998, -0.367286, 0.89100699999999999, 0.266849, 0.55000000000000004, 0.84999999999999998, -0.266849, 0.89100699999999999, 0.367286, 0.59999999999999998, 0.84999999999999998, -0.140291, 0.89100699999999999, 0.43177100000000002, 0.65000000000000002, 0.84999999999999998, 0.0, 0.89100699999999999, 0.45399099999999998, 0.69999999999999996, 0.84999999999999998, 0.140291, 0.89100699999999999, 0.43177100000000002, 0.75, 0.84999999999999998, 0.266849, 0.89100699999999999, 0.367286, 0.80000000000000004, 0.84999999999999998, 0.367286, 0.89100699999999999, 0.266849, 0.84999999999999998, 0.84999999999999998, 0.43177100000000002, 0.89100699999999999, 0.140291, 0.90000000000000002, 0.84999999999999998, 0.45399099999999998, 0.89100699999999999, 0.0, 0.94999999999999996, 0.84999999999999998, -0.30901699999999999, 0.95105700000000004, 0.0, 0.45000000000000001, 0.90000000000000002, -0.29389300000000002, 0.95105700000000004, 0.095491999999999994, 0.5, 0.90000000000000002, -0.25, 0.95105700000000004, 0.18163599999999999, 0.55000000000000004, 0.90000000000000002, -0.18163599999999999, 0.95105700000000004, 0.25, 0.59999999999999998, 0.90000000000000002, -0.095491999999999994, 0.95105700000000004, 0.29389300000000002, 0.65000000000000002, 0.90000000000000002, 0.0, 0.95105700000000004, 0.30901699999999999, 0.69999999999999996, 0.90000000000000002, 0.095491000000000006, 0.95105700000000004, 0.29389300000000002, 0.75, 0.90000000000000002, 0.18163599999999999, 0.95105700000000004, 0.25, 0.80000000000000004, 0.90000000000000002, 0.25, 0.95105700000000004, 0.18163599999999999, 0.84999999999999998, 0.90000000000000002, 0.29389300000000002, 0.95105700000000004, 0.095491999999999994, 0.90000000000000002, 0.90000000000000002, 0.30901699999999999, 0.95105700000000004, 0.0, 0.94999999999999996, 0.90000000000000002, -0.15643499999999999, 0.98768800000000001, 0.0, 0.45000000000000001, 0.94999999999999996, -0.14877799999999999, 0.98768800000000001, 0.048341000000000002, 0.5, 0.94999999999999996, -0.126558, 0.98768800000000001, 0.091950000000000004, 0.55000000000000004, 0.94999999999999996, -0.091950000000000004, 0.98768800000000001, 0.126558, 0.59999999999999998, 0.94999999999999996, -0.048341000000000002, 0.98768800000000001, 0.14877799999999999, 0.65000000000000002, 0.94999999999999996, 0.0, 0.98768800000000001, 0.15643399999999999, 0.69999999999999996, 0.94999999999999996, 0.048341000000000002, 0.98768800000000001, 0.14877799999999999, 0.75, 0.94999999999999996, 0.091950000000000004, 0.98768800000000001, 0.126558, 0.80000000000000004, 0.94999999999999996, 0.126558, 0.98768800000000001, 0.091950000000000004, 0.84999999999999998, 0.94999999999999996, 0.14877799999999999, 0.98768800000000001, 0.048341000000000002, 0.90000000000000002, 0.94999999999999996, 0.15643399999999999, 0.98768800000000001, 0.0, 0.94999999999999996, 0.94999999999999996, 0.0, -1.0, 0.0, 0.47499999999999998, 0.0, 0.0, -1.0, 0.0, 0.52500000000000002, 0.0, 0.0, -1.0, 0.0, 0.57499999999999996, 0.0, 0.0, -1.0, 0.0, 0.625, 0.0, 0.0, -1.0, 0.0, 0.67500000000000004, 0.0, 0.0, -1.0, 0.0, 0.72499999999999998, 0.0, 0.0, -1.0, 0.0, 0.77500000000000002, 0.0, 0.0, -1.0, 0.0, 0.82499999999999996, 0.0, 0.0, -1.0, 0.0, 0.875, 0.0, 0.0, -1.0, 0.0, 0.92500000000000004, 0.0, 0.0, 1.0, 0.0, 0.47499999999999998, 1.0, 0.0, 1.0, 0.0, 0.52500000000000002, 1.0, 0.0, 1.0, 0.0, 0.57499999999999996, 1.0, 0.0, 1.0, 0.0, 0.625, 1.0, 0.0, 1.0, 0.0, 0.67500000000000004, 1.0, 0.0, 1.0, 0.0, 0.72499999999999998, 1.0, 0.0, 1.0, 0.0, 0.77500000000000002, 1.0, 0.0, 1.0, 0.0, 0.82499999999999996, 1.0, 0.0, 1.0, 0.0, 0.875, 1.0, 0.0, 1.0, 0.0, 0.92500000000000004, 1.0]
//var indexArray = [0, 1, 2, 1, 3, 2, 2, 3, 4, 3, 5, 4, 4, 5, 6, 5, 7, 6, 6, 7, 8, 7, 9, 8, 8, 9, 10, 9, 11, 10, 10, 11, 12, 11, 13, 12, 12, 13, 14, 13, 15, 14, 14, 15, 16, 15, 17, 16, 16, 17, 18, 17, 19, 18, 18, 19, 20, 19, 21, 20, 1, 22, 3, 22, 23, 3, 3, 23, 5, 23, 24, 5, 5, 24, 7, 24, 25, 7, 7, 25, 9, 25, 26, 9, 9, 26, 11, 26, 27, 11, 11, 27, 13, 27, 28, 13, 13, 28, 15, 28, 29, 15, 15, 29, 17, 29, 30, 17, 17, 30, 19, 30, 31, 19, 19, 31, 21, 31, 32, 21, 22, 33, 23, 33, 34, 23, 23, 34, 24, 34, 35, 24, 24, 35, 25, 35, 36, 25, 25, 36, 26, 36, 37, 26, 26, 37, 27, 37, 38, 27, 27, 38, 28, 38, 39, 28, 28, 39, 29, 39, 40, 29, 29, 40, 30, 40, 41, 30, 30, 41, 31, 41, 42, 31, 31, 42, 32, 42, 43, 32, 33, 44, 34, 44, 45, 34, 34, 45, 35, 45, 46, 35, 35, 46, 36, 46, 47, 36, 36, 47, 37, 47, 48, 37, 37, 48, 38, 48, 49, 38, 38, 49, 39, 49, 50, 39, 39, 50, 40, 50, 51, 40, 40, 51, 41, 51, 52, 41, 41, 52, 42, 52, 53, 42, 42, 53, 43, 53, 54, 43, 44, 55, 45, 55, 56, 45, 45, 56, 46, 56, 57, 46, 46, 57, 47, 57, 58, 47, 47, 58, 48, 58, 59, 48, 48, 59, 49, 59, 60, 49, 49, 60, 50, 60, 61, 50, 50, 61, 51, 61, 62, 51, 51, 62, 52, 62, 63, 52, 52, 63, 53, 63, 64, 53, 53, 64, 54, 64, 65, 54, 55, 66, 56, 66, 67, 56, 56, 67, 57, 67, 68, 57, 57, 68, 58, 68, 69, 58, 58, 69, 59, 69, 70, 59, 59, 70, 60, 70, 71, 60, 60, 71, 61, 71, 72, 61, 61, 72, 62, 72, 73, 62, 62, 73, 63, 73, 74, 63, 63, 74, 64, 74, 75, 64, 64, 75, 65, 75, 76, 65, 66, 77, 67, 77, 78, 67, 67, 78, 68, 78, 79, 68, 68, 79, 69, 79, 80, 69, 69, 80, 70, 80, 81, 70, 70, 81, 71, 81, 82, 71, 71, 82, 72, 82, 83, 72, 72, 83, 73, 83, 84, 73, 73, 84, 74, 84, 85, 74, 74, 85, 75, 85, 86, 75, 75, 86, 76, 86, 87, 76, 77, 88, 78, 88, 89, 78, 78, 89, 79, 89, 90, 79, 79, 90, 80, 90, 91, 80, 80, 91, 81, 91, 92, 81, 81, 92, 82, 92, 93, 82, 82, 93, 83, 93, 94, 83, 83, 94, 84, 94, 95, 84, 84, 95, 85, 95, 96, 85, 85, 96, 86, 96, 97, 86, 86, 97, 87, 97, 98, 87, 88, 99, 89, 99, 100, 89, 89, 100, 90, 100, 101, 90, 90, 101, 91, 101, 102, 91, 91, 102, 92, 102, 103, 92, 92, 103, 93, 103, 104, 93, 93, 104, 94, 104, 105, 94, 94, 105, 95, 105, 106, 95, 95, 106, 96, 106, 107, 96, 96, 107, 97, 107, 108, 97, 97, 108, 98, 108, 109, 98, 99, 110, 100, 110, 111, 100, 100, 111, 101, 111, 112, 101, 101, 112, 102, 112, 113, 102, 102, 113, 103, 113, 114, 103, 103, 114, 104, 114, 115, 104, 104, 115, 105, 115, 116, 105, 105, 116, 106, 116, 117, 106, 106, 117, 107, 117, 118, 107, 107, 118, 108, 118, 119, 108, 108, 119, 109, 119, 120, 109, 110, 121, 111, 121, 122, 111, 111, 122, 112, 122, 123, 112, 112, 123, 113, 123, 124, 113, 113, 124, 114, 124, 125, 114, 114, 125, 115, 125, 126, 115, 115, 126, 116, 126, 127, 116, 116, 127, 117, 127, 128, 117, 117, 128, 118, 128, 129, 118, 118, 129, 119, 129, 130, 119, 119, 130, 120, 130, 131, 120, 121, 132, 122, 132, 133, 122, 122, 133, 123, 133, 134, 123, 123, 134, 124, 134, 135, 124, 124, 135, 125, 135, 136, 125, 125, 136, 126, 136, 137, 126, 126, 137, 127, 137, 138, 127, 127, 138, 128, 138, 139, 128, 128, 139, 129, 139, 140, 129, 129, 140, 130, 140, 141, 130, 130, 141, 131, 141, 142, 131, 132, 143, 133, 143, 144, 133, 133, 144, 134, 144, 145, 134, 134, 145, 135, 145, 146, 135, 135, 146, 136, 146, 147, 136, 136, 147, 137, 147, 148, 137, 137, 148, 138, 148, 149, 138, 138, 149, 139, 149, 150, 139, 139, 150, 140, 150, 151, 140, 140, 151, 141, 151, 152, 141, 141, 152, 142, 152, 153, 142, 143, 154, 144, 154, 155, 144, 144, 155, 145, 155, 156, 145, 145, 156, 146, 156, 157, 146, 146, 157, 147, 157, 158, 147, 147, 158, 148, 158, 159, 148, 148, 159, 149, 159, 160, 149, 149, 160, 150, 160, 161, 150, 150, 161, 151, 161, 162, 151, 151, 162, 152, 162, 163, 152, 152, 163, 153, 163, 164, 153, 154, 165, 155, 165, 166, 155, 155, 166, 156, 166, 167, 156, 156, 167, 157, 167, 168, 157, 157, 168, 158, 168, 169, 158, 158, 169, 159, 169, 170, 159, 159, 170, 160, 170, 171, 160, 160, 171, 161, 171, 172, 161, 161, 172, 162, 172, 173, 162, 162, 173, 163, 173, 174, 163, 163, 174, 164, 174, 175, 164, 165, 176, 166, 176, 177, 166, 166, 177, 167, 177, 178, 167, 167, 178, 168, 178, 179, 168, 168, 179, 169, 179, 180, 169, 169, 180, 170, 180, 181, 170, 170, 181, 171, 181, 182, 171, 171, 182, 172, 182, 183, 172, 172, 183, 173, 183, 184, 173, 173, 184, 174, 184, 185, 174, 174, 185, 175, 185, 186, 175, 176, 187, 177, 187, 188, 177, 177, 188, 178, 188, 189, 178, 178, 189, 179, 189, 190, 179, 179, 190, 180, 190, 191, 180, 180, 191, 181, 191, 192, 181, 181, 192, 182, 192, 193, 182, 182, 193, 183, 193, 194, 183, 183, 194, 184, 194, 195, 184, 184, 195, 185, 195, 196, 185, 185, 196, 186, 196, 197, 186, 187, 198, 188, 198, 199, 188, 188, 199, 189, 199, 200, 189, 189, 200, 190, 200, 201, 190, 190, 201, 191, 201, 202, 191, 191, 202, 192, 202, 203, 192, 192, 203, 193, 203, 204, 193, 193, 204, 194, 204, 205, 194, 194, 205, 195, 205, 206, 195, 195, 206, 196, 206, 207, 196, 196, 207, 197, 207, 208, 197, 2, 209, 0, 4, 210, 2, 6, 211, 4, 8, 212, 6, 10, 213, 8, 12, 214, 10, 14, 215, 12, 16, 216, 14, 18, 217, 16, 20, 218, 18, 198, 219, 199, 199, 220, 200, 200, 221, 201, 201, 222, 202, 202, 223, 203, 203, 224, 204, 204, 225, 205, 205, 226, 206, 206, 227, 207, 207, 228, 208]
var vertArray = [0.14877799999999999, -0.98768800000000001, -0.048341000000000002, 0.0, 0.050000000000000003, 0.126558, -0.98768800000000001, -0.091950000000000004, 0.050000000000000003, 0.050000000000000003, 0.29389300000000002, -0.95105700000000004, -0.095491999999999994, 0.0, 0.10000000000000001, 0.25, -0.95105700000000004, -0.18163599999999999, 0.050000000000000003, 0.10000000000000001, 0.091950000000000004, -0.98768800000000001, -0.126558, 0.10000000000000001, 0.050000000000000003, 0.18163599999999999, -0.95105700000000004, -0.25, 0.10000000000000001, 0.10000000000000001, 0.048341000000000002, -0.98768800000000001, -0.14877799999999999, 0.14999999999999999, 0.050000000000000003, 0.095491999999999994, -0.95105700000000004, -0.29389300000000002, 0.14999999999999999, 0.10000000000000001, 0.0, -0.98768800000000001, -0.15643499999999999, 0.20000000000000001, 0.050000000000000003, 0.0, -0.95105700000000004, -0.30901699999999999, 0.20000000000000001, 0.10000000000000001, -0.048341000000000002, -0.98768800000000001, -0.14877799999999999, 0.25, 0.050000000000000003, -0.095491999999999994, -0.95105700000000004, -0.29389300000000002, 0.25, 0.10000000000000001, -0.091950000000000004, -0.98768800000000001, -0.126558, 0.29999999999999999, 0.050000000000000003, -0.18163599999999999, -0.95105700000000004, -0.25, 0.29999999999999999, 0.10000000000000001, -0.126558, -0.98768800000000001, -0.091950000000000004, 0.34999999999999998, 0.050000000000000003, -0.25, -0.95105700000000004, -0.18163599999999999, 0.34999999999999998, 0.10000000000000001, -0.14877799999999999, -0.98768800000000001, -0.048341000000000002, 0.40000000000000002, 0.050000000000000003, -0.29389300000000002, -0.95105700000000004, -0.095491999999999994, 0.40000000000000002, 0.10000000000000001, -0.15643499999999999, -0.98768800000000001, 0.0, 0.45000000000000001, 0.050000000000000003, -0.30901699999999999, -0.95105700000000004, 0.0, 0.45000000000000001, 0.10000000000000001, -0.14877799999999999, -0.98768800000000001, 0.048341000000000002, 0.5, 0.050000000000000003, -0.29389300000000002, -0.95105700000000004, 0.095491999999999994, 0.5, 0.10000000000000001, -0.126558, -0.98768800000000001, 0.091950000000000004, 0.55000000000000004, 0.050000000000000003, -0.25, -0.95105700000000004, 0.18163599999999999, 0.55000000000000004, 0.10000000000000001, -0.091950000000000004, -0.98768800000000001, 0.126558, 0.59999999999999998, 0.050000000000000003, -0.18163599999999999, -0.95105700000000004, 0.25, 0.59999999999999998, 0.10000000000000001, -0.048341000000000002, -0.98768800000000001, 0.14877799999999999, 0.65000000000000002, 0.050000000000000003, -0.095491999999999994, -0.95105700000000004, 0.29389300000000002, 0.65000000000000002, 0.10000000000000001, 0.0, -0.98768800000000001, 0.15643399999999999, 0.69999999999999996, 0.050000000000000003, 0.0, -0.95105700000000004, 0.30901699999999999, 0.69999999999999996, 0.10000000000000001, 0.048341000000000002, -0.98768800000000001, 0.14877799999999999, 0.75, 0.050000000000000003, 0.095491000000000006, -0.95105700000000004, 0.29389300000000002, 0.75, 0.10000000000000001, 0.091950000000000004, -0.98768800000000001, 0.126558, 0.80000000000000004, 0.050000000000000003, 0.18163599999999999, -0.95105700000000004, 0.25, 0.80000000000000004, 0.10000000000000001, 0.126558, -0.98768800000000001, 0.091950000000000004, 0.84999999999999998, 0.050000000000000003, 0.25, -0.95105700000000004, 0.18163599999999999, 0.84999999999999998, 0.10000000000000001, 0.14877799999999999, -0.98768800000000001, 0.048341000000000002, 0.90000000000000002, 0.050000000000000003, 0.29389300000000002, -0.95105700000000004, 0.095491999999999994, 0.90000000000000002, 0.10000000000000001, 0.15643399999999999, -0.98768800000000001, 0.0, 0.94999999999999996, 0.050000000000000003, 0.30901699999999999, -0.95105700000000004, 0.0, 0.94999999999999996, 0.10000000000000001, 0.14877799999999999, -0.98768800000000001, -0.048341000000000002, 1.0, 0.050000000000000003, 0.29389300000000002, -0.95105700000000004, -0.095491999999999994, 1.0, 0.10000000000000001, 0.43177100000000002, -0.89100699999999999, -0.140291, 0.0, 0.14999999999999999, 0.367286, -0.89100699999999999, -0.266849, 0.050000000000000003, 0.14999999999999999, 0.266849, -0.89100699999999999, -0.367286, 0.10000000000000001, 0.14999999999999999, 0.140291, -0.89100699999999999, -0.43177100000000002, 0.14999999999999999, 0.14999999999999999, 0.0, -0.89100699999999999, -0.45399099999999998, 0.20000000000000001, 0.14999999999999999, -0.140291, -0.89100699999999999, -0.43177100000000002, 0.25, 0.14999999999999999, -0.266849, -0.89100699999999999, -0.367286, 0.29999999999999999, 0.14999999999999999, -0.367286, -0.89100699999999999, -0.266849, 0.34999999999999998, 0.14999999999999999, -0.43177100000000002, -0.89100699999999999, -0.140291, 0.40000000000000002, 0.14999999999999999, -0.45399099999999998, -0.89100699999999999, 0.0, 0.45000000000000001, 0.14999999999999999, -0.43177100000000002, -0.89100699999999999, 0.140291, 0.5, 0.14999999999999999, -0.367286, -0.89100699999999999, 0.266849, 0.55000000000000004, 0.14999999999999999, -0.266849, -0.89100699999999999, 0.367286, 0.59999999999999998, 0.14999999999999999, -0.140291, -0.89100699999999999, 0.43177100000000002, 0.65000000000000002, 0.14999999999999999, 0.0, -0.89100699999999999, 0.45399099999999998, 0.69999999999999996, 0.14999999999999999, 0.140291, -0.89100699999999999, 0.43177100000000002, 0.75, 0.14999999999999999, 0.266849, -0.89100699999999999, 0.367286, 0.80000000000000004, 0.14999999999999999, 0.367286, -0.89100699999999999, 0.266849, 0.84999999999999998, 0.14999999999999999, 0.43177100000000002, -0.89100699999999999, 0.140291, 0.90000000000000002, 0.14999999999999999, 0.45399099999999998, -0.89100699999999999, 0.0, 0.94999999999999996, 0.14999999999999999, 0.43177100000000002, -0.89100699999999999, -0.140291, 1.0, 0.14999999999999999, 0.55901699999999999, -0.80901699999999999, -0.18163599999999999, 0.0, 0.20000000000000001, 0.47552899999999998, -0.80901699999999999, -0.34549200000000002, 0.050000000000000003, 0.20000000000000001, 0.34549200000000002, -0.80901699999999999, -0.47552899999999998, 0.10000000000000001, 0.20000000000000001, 0.18163599999999999, -0.80901699999999999, -0.55901699999999999, 0.14999999999999999, 0.20000000000000001, 0.0, -0.80901699999999999, -0.58778600000000003, 0.20000000000000001, 0.20000000000000001, -0.18163599999999999, -0.80901699999999999, -0.55901699999999999, 0.25, 0.20000000000000001, -0.34549200000000002, -0.80901699999999999, -0.47552800000000001, 0.29999999999999999, 0.20000000000000001, -0.47552800000000001, -0.80901699999999999, -0.34549200000000002, 0.34999999999999998, 0.20000000000000001, -0.55901699999999999, -0.80901699999999999, -0.18163599999999999, 0.40000000000000002, 0.20000000000000001, -0.587785, -0.80901699999999999, 0.0, 0.45000000000000001, 0.20000000000000001, -0.55901699999999999, -0.80901699999999999, 0.18163599999999999, 0.5, 0.20000000000000001, -0.47552800000000001, -0.80901699999999999, 0.34549200000000002, 0.55000000000000004, 0.20000000000000001, -0.34549200000000002, -0.80901699999999999, 0.47552800000000001, 0.59999999999999998, 0.20000000000000001, -0.18163599999999999, -0.80901699999999999, 0.55901699999999999, 0.65000000000000002, 0.20000000000000001, 0.0, -0.80901699999999999, 0.587785, 0.69999999999999996, 0.20000000000000001, 0.18163599999999999, -0.80901699999999999, 0.55901699999999999, 0.75, 0.20000000000000001, 0.34549099999999999, -0.80901699999999999, 0.47552800000000001, 0.80000000000000004, 0.20000000000000001, 0.47552800000000001, -0.80901699999999999, 0.34549200000000002, 0.84999999999999998, 0.20000000000000001, 0.55901699999999999, -0.80901699999999999, 0.18163599999999999, 0.90000000000000002, 0.20000000000000001, 0.587785, -0.80901699999999999, 0.0, 0.94999999999999996, 0.20000000000000001, 0.55901699999999999, -0.80901699999999999, -0.18163599999999999, 1.0, 0.20000000000000001, 0.67249899999999996, -0.70710700000000004, -0.21850800000000001, 0.0, 0.25, 0.57206199999999996, -0.70710700000000004, -0.41562700000000002, 0.050000000000000003, 0.25, 0.41562700000000002, -0.70710700000000004, -0.57206199999999996, 0.10000000000000001, 0.25, 0.21850800000000001, -0.70710700000000004, -0.67249899999999996, 0.14999999999999999, 0.25, 0.0, -0.70710700000000004, -0.70710700000000004, 0.20000000000000001, 0.25, -0.21850800000000001, -0.70710700000000004, -0.67249899999999996, 0.25, 0.25, -0.41562700000000002, -0.70710700000000004, -0.57206199999999996, 0.29999999999999999, 0.25, -0.57206199999999996, -0.70710700000000004, -0.41562700000000002, 0.34999999999999998, 0.25, -0.67249899999999996, -0.70710700000000004, -0.21850800000000001, 0.40000000000000002, 0.25, -0.70710700000000004, -0.70710700000000004, 0.0, 0.45000000000000001, 0.25, -0.67249899999999996, -0.70710700000000004, 0.21850800000000001, 0.5, 0.25, -0.57206199999999996, -0.70710700000000004, 0.41562700000000002, 0.55000000000000004, 0.25, -0.41562700000000002, -0.70710700000000004, 0.57206100000000004, 0.59999999999999998, 0.25, -0.21850800000000001, -0.70710700000000004, 0.67249899999999996, 0.65000000000000002, 0.25, 0.0, -0.70710700000000004, 0.70710700000000004, 0.69999999999999996, 0.25, 0.21850800000000001, -0.70710700000000004, 0.67249899999999996, 0.75, 0.25, 0.41562700000000002, -0.70710700000000004, 0.57206100000000004, 0.80000000000000004, 0.25, 0.57206100000000004, -0.70710700000000004, 0.41562700000000002, 0.84999999999999998, 0.25, 0.67249899999999996, -0.70710700000000004, 0.21850800000000001, 0.90000000000000002, 0.25, 0.70710700000000004, -0.70710700000000004, 0.0, 0.94999999999999996, 0.25, 0.67249899999999996, -0.70710700000000004, -0.21850800000000001, 1.0, 0.25, 0.76942100000000002, -0.587785, -0.25, 0.0, 0.29999999999999999, 0.65450900000000001, -0.587785, -0.47552899999999998, 0.050000000000000003, 0.29999999999999999, 0.47552899999999998, -0.587785, -0.65450900000000001, 0.10000000000000001, 0.29999999999999999, 0.25, -0.587785, -0.76942100000000002, 0.14999999999999999, 0.29999999999999999, 0.0, -0.587785, -0.80901699999999999, 0.20000000000000001, 0.29999999999999999, -0.25, -0.587785, -0.76942100000000002, 0.25, 0.29999999999999999, -0.47552800000000001, -0.587785, -0.65450900000000001, 0.29999999999999999, 0.29999999999999999, -0.65450900000000001, -0.587785, -0.47552800000000001, 0.34999999999999998, 0.29999999999999999, -0.76942100000000002, -0.587785, -0.25, 0.40000000000000002, 0.29999999999999999, -0.80901699999999999, -0.587785, 0.0, 0.45000000000000001, 0.29999999999999999, -0.76942100000000002, -0.587785, 0.25, 0.5, 0.29999999999999999, -0.65450900000000001, -0.587785, 0.47552800000000001, 0.55000000000000004, 0.29999999999999999, -0.47552800000000001, -0.587785, 0.65450900000000001, 0.59999999999999998, 0.29999999999999999, -0.25, -0.587785, 0.76942100000000002, 0.65000000000000002, 0.29999999999999999, 0.0, -0.587785, 0.80901699999999999, 0.69999999999999996, 0.29999999999999999, 0.25, -0.587785, 0.76942100000000002, 0.75, 0.29999999999999999, 0.47552800000000001, -0.587785, 0.65450900000000001, 0.80000000000000004, 0.29999999999999999, 0.65450900000000001, -0.587785, 0.47552800000000001, 0.84999999999999998, 0.29999999999999999, 0.76942100000000002, -0.587785, 0.25, 0.90000000000000002, 0.29999999999999999, 0.80901699999999999, -0.587785, 0.0, 0.94999999999999996, 0.29999999999999999, 0.76942100000000002, -0.587785, -0.25, 1.0, 0.29999999999999999, 0.84739799999999998, -0.45399099999999998, -0.27533600000000003, 0.0, 0.34999999999999998, 0.72084000000000004, -0.45399099999999998, -0.52372099999999999, 0.050000000000000003, 0.34999999999999998, 0.52372099999999999, -0.45399099999999998, -0.72084000000000004, 0.10000000000000001, 0.34999999999999998, 0.27533600000000003, -0.45399099999999998, -0.84739799999999998, 0.14999999999999999, 0.34999999999999998, 0.0, -0.45399099999999998, -0.89100699999999999, 0.20000000000000001, 0.34999999999999998, -0.27533600000000003, -0.45399099999999998, -0.84739799999999998, 0.25, 0.34999999999999998, -0.52372099999999999, -0.45399099999999998, -0.72084000000000004, 0.29999999999999999, 0.34999999999999998, -0.72084000000000004, -0.45399099999999998, -0.52372099999999999, 0.34999999999999998, 0.34999999999999998, -0.84739799999999998, -0.45399099999999998, -0.27533600000000003, 0.40000000000000002, 0.34999999999999998, -0.89100699999999999, -0.45399099999999998, 0.0, 0.45000000000000001, 0.34999999999999998, -0.84739799999999998, -0.45399099999999998, 0.27533600000000003, 0.5, 0.34999999999999998, -0.72084000000000004, -0.45399099999999998, 0.52372099999999999, 0.55000000000000004, 0.34999999999999998, -0.52372099999999999, -0.45399099999999998, 0.72084000000000004, 0.59999999999999998, 0.34999999999999998, -0.27533600000000003, -0.45399099999999998, 0.84739799999999998, 0.65000000000000002, 0.34999999999999998, 0.0, -0.45399099999999998, 0.89100699999999999, 0.69999999999999996, 0.34999999999999998, 0.27533600000000003, -0.45399099999999998, 0.84739799999999998, 0.75, 0.34999999999999998, 0.52372099999999999, -0.45399099999999998, 0.72084000000000004, 0.80000000000000004, 0.34999999999999998, 0.72083900000000001, -0.45399099999999998, 0.52372099999999999, 0.84999999999999998, 0.34999999999999998, 0.84739799999999998, -0.45399099999999998, 0.27533600000000003, 0.90000000000000002, 0.34999999999999998, 0.89100699999999999, -0.45399099999999998, 0.0, 0.94999999999999996, 0.34999999999999998, 0.84739799999999998, -0.45399099999999998, -0.27533600000000003, 1.0, 0.34999999999999998, 0.90450900000000001, -0.30901699999999999, -0.29389300000000002, 0.0, 0.40000000000000002, 0.76942100000000002, -0.30901699999999999, -0.55901699999999999, 0.050000000000000003, 0.40000000000000002, 0.55901699999999999, -0.30901699999999999, -0.76942100000000002, 0.10000000000000001, 0.40000000000000002, 0.29389300000000002, -0.30901699999999999, -0.90450900000000001, 0.14999999999999999, 0.40000000000000002, 0.0, -0.30901699999999999, -0.95105700000000004, 0.20000000000000001, 0.40000000000000002, -0.29389300000000002, -0.30901699999999999, -0.90450900000000001, 0.25, 0.40000000000000002, -0.55901699999999999, -0.30901699999999999, -0.76942100000000002, 0.29999999999999999, 0.40000000000000002, -0.76942100000000002, -0.30901699999999999, -0.55901699999999999, 0.34999999999999998, 0.40000000000000002, -0.90450900000000001, -0.30901699999999999, -0.29389300000000002, 0.40000000000000002, 0.40000000000000002, -0.95105700000000004, -0.30901699999999999, 0.0, 0.45000000000000001, 0.40000000000000002, -0.90450900000000001, -0.30901699999999999, 0.29389300000000002, 0.5, 0.40000000000000002, -0.76942100000000002, -0.30901699999999999, 0.55901699999999999, 0.55000000000000004, 0.40000000000000002, -0.55901699999999999, -0.30901699999999999, 0.76942100000000002, 0.59999999999999998, 0.40000000000000002, -0.29389300000000002, -0.30901699999999999, 0.90450900000000001, 0.65000000000000002, 0.40000000000000002, 0.0, -0.30901699999999999, 0.95105700000000004, 0.69999999999999996, 0.40000000000000002, 0.29389300000000002, -0.30901699999999999, 0.90450900000000001, 0.75, 0.40000000000000002, 0.55901699999999999, -0.30901699999999999, 0.76942100000000002, 0.80000000000000004, 0.40000000000000002, 0.76942100000000002, -0.30901699999999999, 0.55901699999999999, 0.84999999999999998, 0.40000000000000002, 0.90450900000000001, -0.30901699999999999, 0.29389300000000002, 0.90000000000000002, 0.40000000000000002, 0.95105700000000004, -0.30901699999999999, 0.0, 0.94999999999999996, 0.40000000000000002, 0.90450900000000001, -0.30901699999999999, -0.29389300000000002, 1.0, 0.40000000000000002, 0.93934799999999996, -0.15643399999999999, -0.30521300000000001, 0.0, 0.45000000000000001, 0.79905700000000002, -0.15643399999999999, -0.58054899999999998, 0.050000000000000003, 0.45000000000000001, 0.58054899999999998, -0.15643399999999999, -0.79905700000000002, 0.10000000000000001, 0.45000000000000001, 0.30521300000000001, -0.15643399999999999, -0.93934799999999996, 0.14999999999999999, 0.45000000000000001, 0.0, -0.15643399999999999, -0.98768900000000004, 0.20000000000000001, 0.45000000000000001, -0.30521300000000001, -0.15643399999999999, -0.93934799999999996, 0.25, 0.45000000000000001, -0.58054899999999998, -0.15643399999999999, -0.79905700000000002, 0.29999999999999999, 0.45000000000000001, -0.79905700000000002, -0.15643399999999999, -0.58054899999999998, 0.34999999999999998, 0.45000000000000001, -0.93934799999999996, -0.15643399999999999, -0.30521300000000001, 0.40000000000000002, 0.45000000000000001, -0.98768900000000004, -0.15643399999999999, 0.0, 0.45000000000000001, 0.45000000000000001, -0.93934799999999996, -0.15643399999999999, 0.30521300000000001, 0.5, 0.45000000000000001, -0.79905700000000002, -0.15643399999999999, 0.58054899999999998, 0.55000000000000004, 0.45000000000000001, -0.58054899999999998, -0.15643399999999999, 0.79905700000000002, 0.59999999999999998, 0.45000000000000001, -0.30521300000000001, -0.15643399999999999, 0.93934799999999996, 0.65000000000000002, 0.45000000000000001, 0.0, -0.15643399999999999, 0.98768800000000001, 0.69999999999999996, 0.45000000000000001, 0.30521199999999998, -0.15643399999999999, 0.93934799999999996, 0.75, 0.45000000000000001, 0.58054899999999998, -0.15643399999999999, 0.79905700000000002, 0.80000000000000004, 0.45000000000000001, 0.79905700000000002, -0.15643399999999999, 0.58054899999999998, 0.84999999999999998, 0.45000000000000001, 0.93934799999999996, -0.15643399999999999, 0.30521199999999998, 0.90000000000000002, 0.45000000000000001, 0.98768800000000001, -0.15643399999999999, 0.0, 0.94999999999999996, 0.45000000000000001, 0.93934799999999996, -0.15643399999999999, -0.30521300000000001, 1.0, 0.45000000000000001, 0.95105700000000004, 0.0, -0.30901699999999999, 0.0, 0.5, 0.80901800000000001, 0.0, -0.58778600000000003, 0.050000000000000003, 0.5, 0.58778600000000003, 0.0, -0.80901699999999999, 0.10000000000000001, 0.5, 0.30901699999999999, 0.0, -0.95105700000000004, 0.14999999999999999, 0.5, 0.0, 0.0, -1.0, 0.20000000000000001, 0.5, -0.30901699999999999, 0.0, -0.95105700000000004, 0.25, 0.5, -0.587785, 0.0, -0.80901699999999999, 0.29999999999999999, 0.5, -0.80901699999999999, 0.0, -0.587785, 0.34999999999999998, 0.5, -0.95105700000000004, 0.0, -0.30901699999999999, 0.40000000000000002, 0.5, -1.0, 0.0, 0.0, 0.45000000000000001, 0.5, -0.95105700000000004, 0.0, 0.30901699999999999, 0.5, 0.5, -0.80901699999999999, 0.0, 0.587785, 0.55000000000000004, 0.5, -0.587785, 0.0, 0.80901699999999999, 0.59999999999999998, 0.5, -0.30901699999999999, 0.0, 0.95105700000000004, 0.65000000000000002, 0.5, 0.0, 0.0, 1.0, 0.69999999999999996, 0.5, 0.30901699999999999, 0.0, 0.95105700000000004, 0.75, 0.5, 0.587785, 0.0, 0.80901699999999999, 0.80000000000000004, 0.5, 0.80901699999999999, 0.0, 0.587785, 0.84999999999999998, 0.5, 0.95105700000000004, 0.0, 0.30901699999999999, 0.90000000000000002, 0.5, 1.0, 0.0, 0.0, 0.94999999999999996, 0.5, 0.95105700000000004, 0.0, -0.30901699999999999, 1.0, 0.5, 0.93934799999999996, 0.15643399999999999, -0.30521300000000001, 0.0, 0.55000000000000004, 0.79905700000000002, 0.15643399999999999, -0.58054899999999998, 0.050000000000000003, 0.55000000000000004, 0.58054899999999998, 0.15643399999999999, -0.79905700000000002, 0.10000000000000001, 0.55000000000000004, 0.30521300000000001, 0.15643399999999999, -0.93934799999999996, 0.14999999999999999, 0.55000000000000004, 0.0, 0.15643399999999999, -0.98768900000000004, 0.20000000000000001, 0.55000000000000004, -0.30521300000000001, 0.15643399999999999, -0.93934799999999996, 0.25, 0.55000000000000004, -0.58054899999999998, 0.15643399999999999, -0.79905700000000002, 0.29999999999999999, 0.55000000000000004, -0.79905700000000002, 0.15643399999999999, -0.58054899999999998, 0.34999999999999998, 0.55000000000000004, -0.93934799999999996, 0.15643399999999999, -0.30521300000000001, 0.40000000000000002, 0.55000000000000004, -0.98768900000000004, 0.15643399999999999, 0.0, 0.45000000000000001, 0.55000000000000004, -0.93934799999999996, 0.15643399999999999, 0.30521300000000001, 0.5, 0.55000000000000004, -0.79905700000000002, 0.15643399999999999, 0.58054899999999998, 0.55000000000000004, 0.55000000000000004, -0.58054899999999998, 0.15643399999999999, 0.79905700000000002, 0.59999999999999998, 0.55000000000000004, -0.30521300000000001, 0.15643399999999999, 0.93934799999999996, 0.65000000000000002, 0.55000000000000004, 0.0, 0.15643399999999999, 0.98768800000000001, 0.69999999999999996, 0.55000000000000004, 0.30521199999999998, 0.15643399999999999, 0.93934799999999996, 0.75, 0.55000000000000004, 0.58054899999999998, 0.15643399999999999, 0.79905700000000002, 0.80000000000000004, 0.55000000000000004, 0.79905700000000002, 0.15643399999999999, 0.58054899999999998, 0.84999999999999998, 0.55000000000000004, 0.93934799999999996, 0.15643399999999999, 0.30521199999999998, 0.90000000000000002, 0.55000000000000004, 0.98768800000000001, 0.15643399999999999, 0.0, 0.94999999999999996, 0.55000000000000004, 0.93934799999999996, 0.15643399999999999, -0.30521300000000001, 1.0, 0.55000000000000004, 0.90450900000000001, 0.30901699999999999, -0.29389300000000002, 0.0, 0.59999999999999998, 0.76942100000000002, 0.30901699999999999, -0.55901699999999999, 0.050000000000000003, 0.59999999999999998, 0.55901699999999999, 0.30901699999999999, -0.76942100000000002, 0.10000000000000001, 0.59999999999999998, 0.29389300000000002, 0.30901699999999999, -0.90450900000000001, 0.14999999999999999, 0.59999999999999998, 0.0, 0.30901699999999999, -0.95105700000000004, 0.20000000000000001, 0.59999999999999998, -0.29389300000000002, 0.30901699999999999, -0.90450900000000001, 0.25, 0.59999999999999998, -0.55901699999999999, 0.30901699999999999, -0.76942100000000002, 0.29999999999999999, 0.59999999999999998, -0.76942100000000002, 0.30901699999999999, -0.55901699999999999, 0.34999999999999998, 0.59999999999999998, -0.90450900000000001, 0.30901699999999999, -0.29389300000000002, 0.40000000000000002, 0.59999999999999998, -0.95105700000000004, 0.30901699999999999, 0.0, 0.45000000000000001, 0.59999999999999998, -0.90450900000000001, 0.30901699999999999, 0.29389300000000002, 0.5, 0.59999999999999998, -0.76942100000000002, 0.30901699999999999, 0.55901699999999999, 0.55000000000000004, 0.59999999999999998, -0.55901699999999999, 0.30901699999999999, 0.76942100000000002, 0.59999999999999998, 0.59999999999999998, -0.29389300000000002, 0.30901699999999999, 0.90450900000000001, 0.65000000000000002, 0.59999999999999998, 0.0, 0.30901699999999999, 0.95105700000000004, 0.69999999999999996, 0.59999999999999998, 0.29389300000000002, 0.30901699999999999, 0.90450900000000001, 0.75, 0.59999999999999998, 0.55901699999999999, 0.30901699999999999, 0.76942100000000002, 0.80000000000000004, 0.59999999999999998, 0.76942100000000002, 0.30901699999999999, 0.55901699999999999, 0.84999999999999998, 0.59999999999999998, 0.90450900000000001, 0.30901699999999999, 0.29389300000000002, 0.90000000000000002, 0.59999999999999998, 0.95105700000000004, 0.30901699999999999, 0.0, 0.94999999999999996, 0.59999999999999998, 0.90450900000000001, 0.30901699999999999, -0.29389300000000002, 1.0, 0.59999999999999998, 0.84739799999999998, 0.45399099999999998, -0.27533600000000003, 0.0, 0.65000000000000002, 0.72084000000000004, 0.45399099999999998, -0.52372099999999999, 0.050000000000000003, 0.65000000000000002, 0.52372099999999999, 0.45399099999999998, -0.72084000000000004, 0.10000000000000001, 0.65000000000000002, 0.27533600000000003, 0.45399099999999998, -0.84739799999999998, 0.14999999999999999, 0.65000000000000002, 0.0, 0.45399099999999998, -0.89100699999999999, 0.20000000000000001, 0.65000000000000002, -0.27533600000000003, 0.45399099999999998, -0.84739799999999998, 0.25, 0.65000000000000002, -0.52372099999999999, 0.45399099999999998, -0.72084000000000004, 0.29999999999999999, 0.65000000000000002, -0.72084000000000004, 0.45399099999999998, -0.52372099999999999, 0.34999999999999998, 0.65000000000000002, -0.84739799999999998, 0.45399099999999998, -0.27533600000000003, 0.40000000000000002, 0.65000000000000002, -0.89100699999999999, 0.45399099999999998, 0.0, 0.45000000000000001, 0.65000000000000002, -0.84739799999999998, 0.45399099999999998, 0.27533600000000003, 0.5, 0.65000000000000002, -0.72084000000000004, 0.45399099999999998, 0.52372099999999999, 0.55000000000000004, 0.65000000000000002, -0.52372099999999999, 0.45399099999999998, 0.72084000000000004, 0.59999999999999998, 0.65000000000000002, -0.27533600000000003, 0.45399099999999998, 0.84739799999999998, 0.65000000000000002, 0.65000000000000002, 0.0, 0.45399099999999998, 0.89100699999999999, 0.69999999999999996, 0.65000000000000002, 0.27533600000000003, 0.45399099999999998, 0.84739799999999998, 0.75, 0.65000000000000002, 0.52372099999999999, 0.45399099999999998, 0.72084000000000004, 0.80000000000000004, 0.65000000000000002, 0.72083900000000001, 0.45399099999999998, 0.52372099999999999, 0.84999999999999998, 0.65000000000000002, 0.84739799999999998, 0.45399099999999998, 0.27533600000000003, 0.90000000000000002, 0.65000000000000002, 0.89100699999999999, 0.45399099999999998, 0.0, 0.94999999999999996, 0.65000000000000002, 0.84739799999999998, 0.45399099999999998, -0.27533600000000003, 1.0, 0.65000000000000002, 0.76942100000000002, 0.587785, -0.25, 0.0, 0.69999999999999996, 0.65450900000000001, 0.587785, -0.47552899999999998, 0.050000000000000003, 0.69999999999999996, 0.47552899999999998, 0.587785, -0.65450900000000001, 0.10000000000000001, 0.69999999999999996, 0.25, 0.587785, -0.76942100000000002, 0.14999999999999999, 0.69999999999999996, 0.0, 0.587785, -0.80901699999999999, 0.20000000000000001, 0.69999999999999996, -0.25, 0.587785, -0.76942100000000002, 0.25, 0.69999999999999996, -0.47552800000000001, 0.587785, -0.65450900000000001, 0.29999999999999999, 0.69999999999999996, -0.65450900000000001, 0.587785, -0.47552800000000001, 0.34999999999999998, 0.69999999999999996, -0.76942100000000002, 0.587785, -0.25, 0.40000000000000002, 0.69999999999999996, -0.80901699999999999, 0.587785, 0.0, 0.45000000000000001, 0.69999999999999996, -0.76942100000000002, 0.587785, 0.25, 0.5, 0.69999999999999996, -0.65450900000000001, 0.587785, 0.47552800000000001, 0.55000000000000004, 0.69999999999999996, -0.47552800000000001, 0.587785, 0.65450900000000001, 0.59999999999999998, 0.69999999999999996, -0.25, 0.587785, 0.76942100000000002, 0.65000000000000002, 0.69999999999999996, 0.0, 0.587785, 0.80901699999999999, 0.69999999999999996, 0.69999999999999996, 0.25, 0.587785, 0.76942100000000002, 0.75, 0.69999999999999996, 0.47552800000000001, 0.587785, 0.65450900000000001, 0.80000000000000004, 0.69999999999999996, 0.65450900000000001, 0.587785, 0.47552800000000001, 0.84999999999999998, 0.69999999999999996, 0.76942100000000002, 0.587785, 0.25, 0.90000000000000002, 0.69999999999999996, 0.80901699999999999, 0.587785, 0.0, 0.94999999999999996, 0.69999999999999996, 0.76942100000000002, 0.587785, -0.25, 1.0, 0.69999999999999996, 0.67249899999999996, 0.70710700000000004, -0.21850800000000001, 0.0, 0.75, 0.57206199999999996, 0.70710700000000004, -0.41562700000000002, 0.050000000000000003, 0.75, 0.41562700000000002, 0.70710700000000004, -0.57206199999999996, 0.10000000000000001, 0.75, 0.21850800000000001, 0.70710700000000004, -0.67249899999999996, 0.14999999999999999, 0.75, 0.0, 0.70710700000000004, -0.70710700000000004, 0.20000000000000001, 0.75, -0.21850800000000001, 0.70710700000000004, -0.67249899999999996, 0.25, 0.75, -0.41562700000000002, 0.70710700000000004, -0.57206199999999996, 0.29999999999999999, 0.75, -0.57206199999999996, 0.70710700000000004, -0.41562700000000002, 0.34999999999999998, 0.75, -0.67249899999999996, 0.70710700000000004, -0.21850800000000001, 0.40000000000000002, 0.75, -0.70710700000000004, 0.70710700000000004, 0.0, 0.45000000000000001, 0.75, -0.67249899999999996, 0.70710700000000004, 0.21850800000000001, 0.5, 0.75, -0.57206199999999996, 0.70710700000000004, 0.41562700000000002, 0.55000000000000004, 0.75, -0.41562700000000002, 0.70710700000000004, 0.57206100000000004, 0.59999999999999998, 0.75, -0.21850800000000001, 0.70710700000000004, 0.67249899999999996, 0.65000000000000002, 0.75, 0.0, 0.70710700000000004, 0.70710700000000004, 0.69999999999999996, 0.75, 0.21850800000000001, 0.70710700000000004, 0.67249899999999996, 0.75, 0.75, 0.41562700000000002, 0.70710700000000004, 0.57206100000000004, 0.80000000000000004, 0.75, 0.57206100000000004, 0.70710700000000004, 0.41562700000000002, 0.84999999999999998, 0.75, 0.67249899999999996, 0.70710700000000004, 0.21850800000000001, 0.90000000000000002, 0.75, 0.70710700000000004, 0.70710700000000004, 0.0, 0.94999999999999996, 0.75, 0.67249899999999996, 0.70710700000000004, -0.21850800000000001, 1.0, 0.75, 0.55901699999999999, 0.80901699999999999, -0.18163599999999999, 0.0, 0.80000000000000004, 0.47552899999999998, 0.80901699999999999, -0.34549200000000002, 0.050000000000000003, 0.80000000000000004, 0.34549200000000002, 0.80901699999999999, -0.47552899999999998, 0.10000000000000001, 0.80000000000000004, 0.18163599999999999, 0.80901699999999999, -0.55901699999999999, 0.14999999999999999, 0.80000000000000004, 0.0, 0.80901699999999999, -0.58778600000000003, 0.20000000000000001, 0.80000000000000004, -0.18163599999999999, 0.80901699999999999, -0.55901699999999999, 0.25, 0.80000000000000004, -0.34549200000000002, 0.80901699999999999, -0.47552800000000001, 0.29999999999999999, 0.80000000000000004, -0.47552800000000001, 0.80901699999999999, -0.34549200000000002, 0.34999999999999998, 0.80000000000000004, -0.55901699999999999, 0.80901699999999999, -0.18163599999999999, 0.40000000000000002, 0.80000000000000004, -0.587785, 0.80901699999999999, 0.0, 0.45000000000000001, 0.80000000000000004, -0.55901699999999999, 0.80901699999999999, 0.18163599999999999, 0.5, 0.80000000000000004, -0.47552800000000001, 0.80901699999999999, 0.34549200000000002, 0.55000000000000004, 0.80000000000000004, -0.34549200000000002, 0.80901699999999999, 0.47552800000000001, 0.59999999999999998, 0.80000000000000004, -0.18163599999999999, 0.80901699999999999, 0.55901699999999999, 0.65000000000000002, 0.80000000000000004, 0.0, 0.80901699999999999, 0.587785, 0.69999999999999996, 0.80000000000000004, 0.18163599999999999, 0.80901699999999999, 0.55901699999999999, 0.75, 0.80000000000000004, 0.34549099999999999, 0.80901699999999999, 0.47552800000000001, 0.80000000000000004, 0.80000000000000004, 0.47552800000000001, 0.80901699999999999, 0.34549200000000002, 0.84999999999999998, 0.80000000000000004, 0.55901699999999999, 0.80901699999999999, 0.18163599999999999, 0.90000000000000002, 0.80000000000000004, 0.587785, 0.80901699999999999, 0.0, 0.94999999999999996, 0.80000000000000004, 0.55901699999999999, 0.80901699999999999, -0.18163599999999999, 1.0, 0.80000000000000004, 0.43177100000000002, 0.89100699999999999, -0.140291, 0.0, 0.84999999999999998, 0.367286, 0.89100699999999999, -0.266849, 0.050000000000000003, 0.84999999999999998, 0.266849, 0.89100699999999999, -0.367286, 0.10000000000000001, 0.84999999999999998, 0.140291, 0.89100699999999999, -0.43177100000000002, 0.14999999999999999, 0.84999999999999998, 0.0, 0.89100699999999999, -0.45399099999999998, 0.20000000000000001, 0.84999999999999998, -0.140291, 0.89100699999999999, -0.43177100000000002, 0.25, 0.84999999999999998, -0.266849, 0.89100699999999999, -0.367286, 0.29999999999999999, 0.84999999999999998, -0.367286, 0.89100699999999999, -0.266849, 0.34999999999999998, 0.84999999999999998, -0.43177100000000002, 0.89100699999999999, -0.140291, 0.40000000000000002, 0.84999999999999998, -0.45399099999999998, 0.89100699999999999, 0.0, 0.45000000000000001, 0.84999999999999998, -0.43177100000000002, 0.89100699999999999, 0.140291, 0.5, 0.84999999999999998, -0.367286, 0.89100699999999999, 0.266849, 0.55000000000000004, 0.84999999999999998, -0.266849, 0.89100699999999999, 0.367286, 0.59999999999999998, 0.84999999999999998, -0.140291, 0.89100699999999999, 0.43177100000000002, 0.65000000000000002, 0.84999999999999998, 0.0, 0.89100699999999999, 0.45399099999999998, 0.69999999999999996, 0.84999999999999998, 0.140291, 0.89100699999999999, 0.43177100000000002, 0.75, 0.84999999999999998, 0.266849, 0.89100699999999999, 0.367286, 0.80000000000000004, 0.84999999999999998, 0.367286, 0.89100699999999999, 0.266849, 0.84999999999999998, 0.84999999999999998, 0.43177100000000002, 0.89100699999999999, 0.140291, 0.90000000000000002, 0.84999999999999998, 0.45399099999999998, 0.89100699999999999, 0.0, 0.94999999999999996, 0.84999999999999998, 0.43177100000000002, 0.89100699999999999, -0.140291, 1.0, 0.84999999999999998, 0.29389300000000002, 0.95105700000000004, -0.095491999999999994, 0.0, 0.90000000000000002, 0.25, 0.95105700000000004, -0.18163599999999999, 0.050000000000000003, 0.90000000000000002, 0.18163599999999999, 0.95105700000000004, -0.25, 0.10000000000000001, 0.90000000000000002, 0.095491999999999994, 0.95105700000000004, -0.29389300000000002, 0.14999999999999999, 0.90000000000000002, 0.0, 0.95105700000000004, -0.30901699999999999, 0.20000000000000001, 0.90000000000000002, -0.095491999999999994, 0.95105700000000004, -0.29389300000000002, 0.25, 0.90000000000000002, -0.18163599999999999, 0.95105700000000004, -0.25, 0.29999999999999999, 0.90000000000000002, -0.25, 0.95105700000000004, -0.18163599999999999, 0.34999999999999998, 0.90000000000000002, -0.29389300000000002, 0.95105700000000004, -0.095491999999999994, 0.40000000000000002, 0.90000000000000002, -0.30901699999999999, 0.95105700000000004, 0.0, 0.45000000000000001, 0.90000000000000002, -0.29389300000000002, 0.95105700000000004, 0.095491999999999994, 0.5, 0.90000000000000002, -0.25, 0.95105700000000004, 0.18163599999999999, 0.55000000000000004, 0.90000000000000002, -0.18163599999999999, 0.95105700000000004, 0.25, 0.59999999999999998, 0.90000000000000002, -0.095491999999999994, 0.95105700000000004, 0.29389300000000002, 0.65000000000000002, 0.90000000000000002, 0.0, 0.95105700000000004, 0.30901699999999999, 0.69999999999999996, 0.90000000000000002, 0.095491000000000006, 0.95105700000000004, 0.29389300000000002, 0.75, 0.90000000000000002, 0.18163599999999999, 0.95105700000000004, 0.25, 0.80000000000000004, 0.90000000000000002, 0.25, 0.95105700000000004, 0.18163599999999999, 0.84999999999999998, 0.90000000000000002, 0.29389300000000002, 0.95105700000000004, 0.095491999999999994, 0.90000000000000002, 0.90000000000000002, 0.30901699999999999, 0.95105700000000004, 0.0, 0.94999999999999996, 0.90000000000000002, 0.29389300000000002, 0.95105700000000004, -0.095491999999999994, 1.0, 0.90000000000000002, 0.14877799999999999, 0.98768800000000001, -0.048341000000000002, 0.0, 0.94999999999999996, 0.126558, 0.98768800000000001, -0.091950000000000004, 0.050000000000000003, 0.94999999999999996, 0.091950000000000004, 0.98768800000000001, -0.126558, 0.10000000000000001, 0.94999999999999996, 0.048341000000000002, 0.98768800000000001, -0.14877799999999999, 0.14999999999999999, 0.94999999999999996, 0.0, 0.98768800000000001, -0.15643499999999999, 0.20000000000000001, 0.94999999999999996, -0.048341000000000002, 0.98768800000000001, -0.14877799999999999, 0.25, 0.94999999999999996, -0.091950000000000004, 0.98768800000000001, -0.126558, 0.29999999999999999, 0.94999999999999996, -0.126558, 0.98768800000000001, -0.091950000000000004, 0.34999999999999998, 0.94999999999999996, -0.14877799999999999, 0.98768800000000001, -0.048341000000000002, 0.40000000000000002, 0.94999999999999996, -0.15643499999999999, 0.98768800000000001, 0.0, 0.45000000000000001, 0.94999999999999996, -0.14877799999999999, 0.98768800000000001, 0.048341000000000002, 0.5, 0.94999999999999996, -0.126558, 0.98768800000000001, 0.091950000000000004, 0.55000000000000004, 0.94999999999999996, -0.091950000000000004, 0.98768800000000001, 0.126558, 0.59999999999999998, 0.94999999999999996, -0.048341000000000002, 0.98768800000000001, 0.14877799999999999, 0.65000000000000002, 0.94999999999999996, 0.0, 0.98768800000000001, 0.15643399999999999, 0.69999999999999996, 0.94999999999999996, 0.048341000000000002, 0.98768800000000001, 0.14877799999999999, 0.75, 0.94999999999999996, 0.091950000000000004, 0.98768800000000001, 0.126558, 0.80000000000000004, 0.94999999999999996, 0.126558, 0.98768800000000001, 0.091950000000000004, 0.84999999999999998, 0.94999999999999996, 0.14877799999999999, 0.98768800000000001, 0.048341000000000002, 0.90000000000000002, 0.94999999999999996, 0.15643399999999999, 0.98768800000000001, 0.0, 0.94999999999999996, 0.94999999999999996, 0.14877799999999999, 0.98768800000000001, -0.048341000000000002, 1.0, 0.94999999999999996, 0.0, -1.0, 0.0, 0.025000000000000001, 0.0, 0.0, -1.0, 0.0, 0.074999999999999997, 0.0, 0.0, -1.0, 0.0, 0.125, 0.0, 0.0, -1.0, 0.0, 0.17499999999999999, 0.0, 0.0, -1.0, 0.0, 0.22500000000000001, 0.0, 0.0, -1.0, 0.0, 0.27500000000000002, 0.0, 0.0, -1.0, 0.0, 0.32500000000000001, 0.0, 0.0, -1.0, 0.0, 0.375, 0.0, 0.0, -1.0, 0.0, 0.42499999999999999, 0.0, 0.0, -1.0, 0.0, 0.47499999999999998, 0.0, 0.0, -1.0, 0.0, 0.52500000000000002, 0.0, 0.0, -1.0, 0.0, 0.57499999999999996, 0.0, 0.0, -1.0, 0.0, 0.625, 0.0, 0.0, -1.0, 0.0, 0.67500000000000004, 0.0, 0.0, -1.0, 0.0, 0.72499999999999998, 0.0, 0.0, -1.0, 0.0, 0.77500000000000002, 0.0, 0.0, -1.0, 0.0, 0.82499999999999996, 0.0, 0.0, -1.0, 0.0, 0.875, 0.0, 0.0, -1.0, 0.0, 0.92500000000000004, 0.0, 0.0, -1.0, 0.0, 0.97499999999999998, 0.0, 0.0, 1.0, 0.0, 0.025000000000000001, 1.0, 0.0, 1.0, 0.0, 0.074999999999999997, 1.0, 0.0, 1.0, 0.0, 0.125, 1.0, 0.0, 1.0, 0.0, 0.17499999999999999, 1.0, 0.0, 1.0, 0.0, 0.22500000000000001, 1.0, 0.0, 1.0, 0.0, 0.27500000000000002, 1.0, 0.0, 1.0, 0.0, 0.32500000000000001, 1.0, 0.0, 1.0, 0.0, 0.375, 1.0, 0.0, 1.0, 0.0, 0.42499999999999999, 1.0, 0.0, 1.0, 0.0, 0.47499999999999998, 1.0, 0.0, 1.0, 0.0, 0.52500000000000002, 1.0, 0.0, 1.0, 0.0, 0.57499999999999996, 1.0, 0.0, 1.0, 0.0, 0.625, 1.0, 0.0, 1.0, 0.0, 0.67500000000000004, 1.0, 0.0, 1.0, 0.0, 0.72499999999999998, 1.0, 0.0, 1.0, 0.0, 0.77500000000000002, 1.0, 0.0, 1.0, 0.0, 0.82499999999999996, 1.0, 0.0, 1.0, 0.0, 0.875, 1.0, 0.0, 1.0, 0.0, 0.92500000000000004, 1.0, 0.0, 1.0, 0.0, 0.97499999999999998, 1.0];
var indexArray = [0, 1, 2, 2, 1, 3, 1, 4, 3, 3, 4, 5, 4, 6, 5, 5, 6, 7, 6, 8, 7, 7, 8, 9, 8, 10, 9, 9, 10, 11, 10, 12, 11, 11, 12, 13, 12, 14, 13, 13, 14, 15, 14, 16, 15, 15, 16, 17, 16, 18, 17, 17, 18, 19, 18, 20, 19, 19, 20, 21, 20, 22, 21, 21, 22, 23, 22, 24, 23, 23, 24, 25, 24, 26, 25, 25, 26, 27, 26, 28, 27, 27, 28, 29, 28, 30, 29, 29, 30, 31, 30, 32, 31, 31, 32, 33, 32, 34, 33, 33, 34, 35, 34, 36, 35, 35, 36, 37, 36, 38, 37, 37, 38, 39, 38, 40, 39, 39, 40, 41, 2, 3, 42, 42, 3, 43, 3, 5, 43, 43, 5, 44, 5, 7, 44, 44, 7, 45, 7, 9, 45, 45, 9, 46, 9, 11, 46, 46, 11, 47, 11, 13, 47, 47, 13, 48, 13, 15, 48, 48, 15, 49, 15, 17, 49, 49, 17, 50, 17, 19, 50, 50, 19, 51, 19, 21, 51, 51, 21, 52, 21, 23, 52, 52, 23, 53, 23, 25, 53, 53, 25, 54, 25, 27, 54, 54, 27, 55, 27, 29, 55, 55, 29, 56, 29, 31, 56, 56, 31, 57, 31, 33, 57, 57, 33, 58, 33, 35, 58, 58, 35, 59, 35, 37, 59, 59, 37, 60, 37, 39, 60, 60, 39, 61, 39, 41, 61, 61, 41, 62, 42, 43, 63, 63, 43, 64, 43, 44, 64, 64, 44, 65, 44, 45, 65, 65, 45, 66, 45, 46, 66, 66, 46, 67, 46, 47, 67, 67, 47, 68, 47, 48, 68, 68, 48, 69, 48, 49, 69, 69, 49, 70, 49, 50, 70, 70, 50, 71, 50, 51, 71, 71, 51, 72, 51, 52, 72, 72, 52, 73, 52, 53, 73, 73, 53, 74, 53, 54, 74, 74, 54, 75, 54, 55, 75, 75, 55, 76, 55, 56, 76, 76, 56, 77, 56, 57, 77, 77, 57, 78, 57, 58, 78, 78, 58, 79, 58, 59, 79, 79, 59, 80, 59, 60, 80, 80, 60, 81, 60, 61, 81, 81, 61, 82, 61, 62, 82, 82, 62, 83, 63, 64, 84, 84, 64, 85, 64, 65, 85, 85, 65, 86, 65, 66, 86, 86, 66, 87, 66, 67, 87, 87, 67, 88, 67, 68, 88, 88, 68, 89, 68, 69, 89, 89, 69, 90, 69, 70, 90, 90, 70, 91, 70, 71, 91, 91, 71, 92, 71, 72, 92, 92, 72, 93, 72, 73, 93, 93, 73, 94, 73, 74, 94, 94, 74, 95, 74, 75, 95, 95, 75, 96, 75, 76, 96, 96, 76, 97, 76, 77, 97, 97, 77, 98, 77, 78, 98, 98, 78, 99, 78, 79, 99, 99, 79, 100, 79, 80, 100, 100, 80, 101, 80, 81, 101, 101, 81, 102, 81, 82, 102, 102, 82, 103, 82, 83, 103, 103, 83, 104, 84, 85, 105, 105, 85, 106, 85, 86, 106, 106, 86, 107, 86, 87, 107, 107, 87, 108, 87, 88, 108, 108, 88, 109, 88, 89, 109, 109, 89, 110, 89, 90, 110, 110, 90, 111, 90, 91, 111, 111, 91, 112, 91, 92, 112, 112, 92, 113, 92, 93, 113, 113, 93, 114, 93, 94, 114, 114, 94, 115, 94, 95, 115, 115, 95, 116, 95, 96, 116, 116, 96, 117, 96, 97, 117, 117, 97, 118, 97, 98, 118, 118, 98, 119, 98, 99, 119, 119, 99, 120, 99, 100, 120, 120, 100, 121, 100, 101, 121, 121, 101, 122, 101, 102, 122, 122, 102, 123, 102, 103, 123, 123, 103, 124, 103, 104, 124, 124, 104, 125, 105, 106, 126, 126, 106, 127, 106, 107, 127, 127, 107, 128, 107, 108, 128, 128, 108, 129, 108, 109, 129, 129, 109, 130, 109, 110, 130, 130, 110, 131, 110, 111, 131, 131, 111, 132, 111, 112, 132, 132, 112, 133, 112, 113, 133, 133, 113, 134, 113, 114, 134, 134, 114, 135, 114, 115, 135, 135, 115, 136, 115, 116, 136, 136, 116, 137, 116, 117, 137, 137, 117, 138, 117, 118, 138, 138, 118, 139, 118, 119, 139, 139, 119, 140, 119, 120, 140, 140, 120, 141, 120, 121, 141, 141, 121, 142, 121, 122, 142, 142, 122, 143, 122, 123, 143, 143, 123, 144, 123, 124, 144, 144, 124, 145, 124, 125, 145, 145, 125, 146, 126, 127, 147, 147, 127, 148, 127, 128, 148, 148, 128, 149, 128, 129, 149, 149, 129, 150, 129, 130, 150, 150, 130, 151, 130, 131, 151, 151, 131, 152, 131, 132, 152, 152, 132, 153, 132, 133, 153, 153, 133, 154, 133, 134, 154, 154, 134, 155, 134, 135, 155, 155, 135, 156, 135, 136, 156, 156, 136, 157, 136, 137, 157, 157, 137, 158, 137, 138, 158, 158, 138, 159, 138, 139, 159, 159, 139, 160, 139, 140, 160, 160, 140, 161, 140, 141, 161, 161, 141, 162, 141, 142, 162, 162, 142, 163, 142, 143, 163, 163, 143, 164, 143, 144, 164, 164, 144, 165, 144, 145, 165, 165, 145, 166, 145, 146, 166, 166, 146, 167, 147, 148, 168, 168, 148, 169, 148, 149, 169, 169, 149, 170, 149, 150, 170, 170, 150, 171, 150, 151, 171, 171, 151, 172, 151, 152, 172, 172, 152, 173, 152, 153, 173, 173, 153, 174, 153, 154, 174, 174, 154, 175, 154, 155, 175, 175, 155, 176, 155, 156, 176, 176, 156, 177, 156, 157, 177, 177, 157, 178, 157, 158, 178, 178, 158, 179, 158, 159, 179, 179, 159, 180, 159, 160, 180, 180, 160, 181, 160, 161, 181, 181, 161, 182, 161, 162, 182, 182, 162, 183, 162, 163, 183, 183, 163, 184, 163, 164, 184, 184, 164, 185, 164, 165, 185, 185, 165, 186, 165, 166, 186, 186, 166, 187, 166, 167, 187, 187, 167, 188, 168, 169, 189, 189, 169, 190, 169, 170, 190, 190, 170, 191, 170, 171, 191, 191, 171, 192, 171, 172, 192, 192, 172, 193, 172, 173, 193, 193, 173, 194, 173, 174, 194, 194, 174, 195, 174, 175, 195, 195, 175, 196, 175, 176, 196, 196, 176, 197, 176, 177, 197, 197, 177, 198, 177, 178, 198, 198, 178, 199, 178, 179, 199, 199, 179, 200, 179, 180, 200, 200, 180, 201, 180, 181, 201, 201, 181, 202, 181, 182, 202, 202, 182, 203, 182, 183, 203, 203, 183, 204, 183, 184, 204, 204, 184, 205, 184, 185, 205, 205, 185, 206, 185, 186, 206, 206, 186, 207, 186, 187, 207, 207, 187, 208, 187, 188, 208, 208, 188, 209, 189, 190, 210, 210, 190, 211, 190, 191, 211, 211, 191, 212, 191, 192, 212, 212, 192, 213, 192, 193, 213, 213, 193, 214, 193, 194, 214, 214, 194, 215, 194, 195, 215, 215, 195, 216, 195, 196, 216, 216, 196, 217, 196, 197, 217, 217, 197, 218, 197, 198, 218, 218, 198, 219, 198, 199, 219, 219, 199, 220, 199, 200, 220, 220, 200, 221, 200, 201, 221, 221, 201, 222, 201, 202, 222, 222, 202, 223, 202, 203, 223, 223, 203, 224, 203, 204, 224, 224, 204, 225, 204, 205, 225, 225, 205, 226, 205, 206, 226, 226, 206, 227, 206, 207, 227, 227, 207, 228, 207, 208, 228, 228, 208, 229, 208, 209, 229, 229, 209, 230, 210, 211, 231, 231, 211, 232, 211, 212, 232, 232, 212, 233, 212, 213, 233, 233, 213, 234, 213, 214, 234, 234, 214, 235, 214, 215, 235, 235, 215, 236, 215, 216, 236, 236, 216, 237, 216, 217, 237, 237, 217, 238, 217, 218, 238, 238, 218, 239, 218, 219, 239, 239, 219, 240, 219, 220, 240, 240, 220, 241, 220, 221, 241, 241, 221, 242, 221, 222, 242, 242, 222, 243, 222, 223, 243, 243, 223, 244, 223, 224, 244, 244, 224, 245, 224, 225, 245, 245, 225, 246, 225, 226, 246, 246, 226, 247, 226, 227, 247, 247, 227, 248, 227, 228, 248, 248, 228, 249, 228, 229, 249, 249, 229, 250, 229, 230, 250, 250, 230, 251, 231, 232, 252, 252, 232, 253, 232, 233, 253, 253, 233, 254, 233, 234, 254, 254, 234, 255, 234, 235, 255, 255, 235, 256, 235, 236, 256, 256, 236, 257, 236, 237, 257, 257, 237, 258, 237, 238, 258, 258, 238, 259, 238, 239, 259, 259, 239, 260, 239, 240, 260, 260, 240, 261, 240, 241, 261, 261, 241, 262, 241, 242, 262, 262, 242, 263, 242, 243, 263, 263, 243, 264, 243, 244, 264, 264, 244, 265, 244, 245, 265, 265, 245, 266, 245, 246, 266, 266, 246, 267, 246, 247, 267, 267, 247, 268, 247, 248, 268, 268, 248, 269, 248, 249, 269, 269, 249, 270, 249, 250, 270, 270, 250, 271, 250, 251, 271, 271, 251, 272, 252, 253, 273, 273, 253, 274, 253, 254, 274, 274, 254, 275, 254, 255, 275, 275, 255, 276, 255, 256, 276, 276, 256, 277, 256, 257, 277, 277, 257, 278, 257, 258, 278, 278, 258, 279, 258, 259, 279, 279, 259, 280, 259, 260, 280, 280, 260, 281, 260, 261, 281, 281, 261, 282, 261, 262, 282, 282, 262, 283, 262, 263, 283, 283, 263, 284, 263, 264, 284, 284, 264, 285, 264, 265, 285, 285, 265, 286, 265, 266, 286, 286, 266, 287, 266, 267, 287, 287, 267, 288, 267, 268, 288, 288, 268, 289, 268, 269, 289, 289, 269, 290, 269, 270, 290, 290, 270, 291, 270, 271, 291, 291, 271, 292, 271, 272, 292, 292, 272, 293, 273, 274, 294, 294, 274, 295, 274, 275, 295, 295, 275, 296, 275, 276, 296, 296, 276, 297, 276, 277, 297, 297, 277, 298, 277, 278, 298, 298, 278, 299, 278, 279, 299, 299, 279, 300, 279, 280, 300, 300, 280, 301, 280, 281, 301, 301, 281, 302, 281, 282, 302, 302, 282, 303, 282, 283, 303, 303, 283, 304, 283, 284, 304, 304, 284, 305, 284, 285, 305, 305, 285, 306, 285, 286, 306, 306, 286, 307, 286, 287, 307, 307, 287, 308, 287, 288, 308, 308, 288, 309, 288, 289, 309, 309, 289, 310, 289, 290, 310, 310, 290, 311, 290, 291, 311, 311, 291, 312, 291, 292, 312, 312, 292, 313, 292, 293, 313, 313, 293, 314, 294, 295, 315, 315, 295, 316, 295, 296, 316, 316, 296, 317, 296, 297, 317, 317, 297, 318, 297, 298, 318, 318, 298, 319, 298, 299, 319, 319, 299, 320, 299, 300, 320, 320, 300, 321, 300, 301, 321, 321, 301, 322, 301, 302, 322, 322, 302, 323, 302, 303, 323, 323, 303, 324, 303, 304, 324, 324, 304, 325, 304, 305, 325, 325, 305, 326, 305, 306, 326, 326, 306, 327, 306, 307, 327, 327, 307, 328, 307, 308, 328, 328, 308, 329, 308, 309, 329, 329, 309, 330, 309, 310, 330, 330, 310, 331, 310, 311, 331, 331, 311, 332, 311, 312, 332, 332, 312, 333, 312, 313, 333, 333, 313, 334, 313, 314, 334, 334, 314, 335, 315, 316, 336, 336, 316, 337, 316, 317, 337, 337, 317, 338, 317, 318, 338, 338, 318, 339, 318, 319, 339, 339, 319, 340, 319, 320, 340, 340, 320, 341, 320, 321, 341, 341, 321, 342, 321, 322, 342, 342, 322, 343, 322, 323, 343, 343, 323, 344, 323, 324, 344, 344, 324, 345, 324, 325, 345, 345, 325, 346, 325, 326, 346, 346, 326, 347, 326, 327, 347, 347, 327, 348, 327, 328, 348, 348, 328, 349, 328, 329, 349, 349, 329, 350, 329, 330, 350, 350, 330, 351, 330, 331, 351, 351, 331, 352, 331, 332, 352, 352, 332, 353, 332, 333, 353, 353, 333, 354, 333, 334, 354, 354, 334, 355, 334, 335, 355, 355, 335, 356, 336, 337, 357, 357, 337, 358, 337, 338, 358, 358, 338, 359, 338, 339, 359, 359, 339, 360, 339, 340, 360, 360, 340, 361, 340, 341, 361, 361, 341, 362, 341, 342, 362, 362, 342, 363, 342, 343, 363, 363, 343, 364, 343, 344, 364, 364, 344, 365, 344, 345, 365, 365, 345, 366, 345, 346, 366, 366, 346, 367, 346, 347, 367, 367, 347, 368, 347, 348, 368, 368, 348, 369, 348, 349, 369, 369, 349, 370, 349, 350, 370, 370, 350, 371, 350, 351, 371, 371, 351, 372, 351, 352, 372, 372, 352, 373, 352, 353, 373, 373, 353, 374, 353, 354, 374, 374, 354, 375, 354, 355, 375, 375, 355, 376, 355, 356, 376, 376, 356, 377, 357, 358, 378, 378, 358, 379, 358, 359, 379, 379, 359, 380, 359, 360, 380, 380, 360, 381, 360, 361, 381, 381, 361, 382, 361, 362, 382, 382, 362, 383, 362, 363, 383, 383, 363, 384, 363, 364, 384, 384, 364, 385, 364, 365, 385, 385, 365, 386, 365, 366, 386, 386, 366, 387, 366, 367, 387, 387, 367, 388, 367, 368, 388, 388, 368, 389, 368, 369, 389, 389, 369, 390, 369, 370, 390, 390, 370, 391, 370, 371, 391, 391, 371, 392, 371, 372, 392, 392, 372, 393, 372, 373, 393, 393, 373, 394, 373, 374, 394, 394, 374, 395, 374, 375, 395, 395, 375, 396, 375, 376, 396, 396, 376, 397, 376, 377, 397, 397, 377, 398, 1, 0, 399, 4, 1, 400, 6, 4, 401, 8, 6, 402, 10, 8, 403, 12, 10, 404, 14, 12, 405, 16, 14, 406, 18, 16, 407, 20, 18, 408, 22, 20, 409, 24, 22, 410, 26, 24, 411, 28, 26, 412, 30, 28, 413, 32, 30, 414, 34, 32, 415, 36, 34, 416, 38, 36, 417, 40, 38, 418, 378, 379, 419, 379, 380, 420, 380, 381, 421, 381, 382, 422, 382, 383, 423, 383, 384, 424, 384, 385, 425, 385, 386, 426, 386, 387, 427, 387, 388, 428, 388, 389, 429, 389, 390, 430, 390, 391, 431, 391, 392, 432, 392, 393, 433, 393, 394, 434, 394, 395, 435, 395, 396, 436, 396, 397, 437, 397, 398, 438];
triCount = indexArray.length;
// Activate Depth Testing
gl.enable(gl.DEPTH_TEST);
gl.depthFunc(gl.LEQUAL);
// Create and fill the Texture
diffuse = gl.createTexture();
// Create and fill the vertex and index buffers
vertBuffer = gl.createBuffer();
gl.bindBuffer(gl.ARRAY_BUFFER, vertBuffer);
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(vertArray), gl.STATIC_DRAW);
indexBuffer = gl.createBuffer();
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, indexBuffer);
gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, new Uint16Array(indexArray), gl.STATIC_DRAW);
diffuse.img = new Image();
window.addEventListener('deviceorientation', function (event) {
// z is up order yxz
//orientsocket.send('o:' + event.alpha + ":" + event.beta + ":" + event.gamma + ":");
// y is up order zxy
document.getElementById('a').innerHTML = event.alpha;
document.getElementById('b').innerHTML = event.beta;
document.getElementById('d').innerHTML = event.gamma;
}, false);
}
function updateFrame(frameTime, event) {
}
var rotx = 0.0;
var roty = 0.0;
var rotz = 0.0;
// Draw a single frame, return "false" if you wish to stop animating
function drawFrame(gl, event) {
document.getElementById('ms').innerHTML = event.frameTime;
var eyeDist = parseFloat(document.getElementById('eyedist').value);
var screenOffset = parseInt(document.getElementById('screenoffset').value);
//rotx = rotx + event.frameTime * 0.1;
roty = roty + event.frameTime * 0.04;
//rotz = rotz + event.frameTime * 1;
gl.bindTexture(gl.TEXTURE_2D, diffuse);
//gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, videoElement);
mat4.perspective(persp, glMatrix.toRadian(45.0), 1024.0 / 512.0, 0.01, 100.0);
mat4.identity(model);
mat4.identity(viewL);
mat4.rotateZ(viewL, viewL, glMatrix.toRadian(rotz));
mat4.rotateX(viewL, viewL, glMatrix.toRadian(rotx));
mat4.rotateY(viewL, viewL, glMatrix.toRadian(roty));
mat4.translate(viewL, viewL, [-eyeDist/2.0, 0, 0]);
mat4.identity(viewR);
mat4.rotateZ(viewR, viewR, glMatrix.toRadian(rotz));
mat4.rotateX(viewR, viewR, glMatrix.toRadian(rotx));
mat4.rotateY(viewR, viewR, glMatrix.toRadian(roty));
mat4.translate(viewR, viewR, [eyeDist/2.0, 0, 0]);
gl.clearColor(1.0, 0.0, 0.0, 1.0);
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
// Set the shader
gl.useProgram(shader);
// Setup the vertex buffer layout
gl.enableVertexAttribArray(shader.attribute.position);
gl.enableVertexAttribArray(shader.attribute.texture);
gl.vertexAttribPointer(shader.attribute.position, 3, gl.FLOAT, false, 20, 0);
gl.vertexAttribPointer(shader.attribute.texture, 2, gl.FLOAT, false, 20, 12);
// Bind Texture
gl.activeTexture(gl.TEXTURE0);
gl.bindTexture(gl.TEXTURE_2D, diffuse);
gl.uniform1i(shader.uniform.diffuse, 0);
// Draw the mesh
gl.bindBuffer(gl.ARRAY_BUFFER, vertBuffer);
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, indexBuffer);
mat4.invert(invView, viewL);
mat4.multiply(invViewModel, invView, model);
mat4.multiply(perspInvViewModel, persp, invViewModel);
gl.uniformMatrix4fv(shader.uniform.modelInvViewPersp, false, perspInvViewModel);
gl.enable(gl.SCISSOR_TEST);
gl.viewport(screenOffset, 0, 512, 512);
gl.scissor(0,0,512,512)
gl.drawElements(gl.TRIANGLES, triCount, gl.UNSIGNED_SHORT, 0);
mat4.invert(invView, viewR);
mat4.multiply(invViewModel, invView, model);
mat4.multiply(perspInvViewModel, persp, invViewModel);
gl.uniformMatrix4fv(shader.uniform.modelInvViewPersp, false, perspInvViewModel);
gl.viewport(512 - screenOffset, 0, 512, 512);
gl.scissor(512, 0, 512, 512)
gl.drawElements(gl.TRIANGLES, triCount, gl.UNSIGNED_SHORT, 0);
gl.disable(gl.SCISSOR_TEST);
}
// Called once the page has been loaded
function main() {
var canvas = document.getElementById('viewport');
// Set the canvas size
canvas.width = 1024;
canvas.height = 512;
// Remove the "true" here to stop running with a Debug WebGL context
var gl = setupWebGLSandbox(canvas, true);
initScene( gl );
initEvents();
renderLoop(gl, canvas);
}
var out = function(message) {
var div = document.createElement('div');
div.innerHTML = message;
document.getElementById('output').appendChild(div);
};
window.onload = main;
</script>
<!-- Shaders -->
<script id="simple-vs" type="x-shader/x-vertex">
#ifdef GL_ES
precision highp float;
#endif
attribute vec3 position;
attribute vec2 texture;
uniform mat4 modelInvViewPersp;
varying vec2 texCoord;
void main(void) {
texCoord = vec2(1.0-texture.x,1.0-texture.y);
gl_Position = modelInvViewPersp * vec4(position.x,position.y,position.z, 1.0);
}
</script>
<script id="simple-fs" type="x-shader/x-fragment">
#ifdef GL_ES
precision highp float;
#endif
varying vec2 texCoord;
uniform sampler2D diffuse;
void main(void) {
vec2 d = texCoord.st;
vec2 ad = max(d,-d);
float c = max(ad.x,ad.y) > 1.0 ? 0.0 : 1.0;
gl_FragColor = vec4(texture2D(diffuse, d).xyz*c, 1.0);
}
</script>
</head>
<body>
<video id="video" src=""></video>
<div id="viewport-frame">
<canvas id="viewport">
Sorry, but your browser does not support WebGL or does not have it enabled.
To get a WebGL-enabled browser, please see:<br/>
<a href="http://www.khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" target="_blank">
Getting a WebGL Implementation
</a>
</canvas>
<div id="fps-counter">
MS: <span id="ms">0</span>
</div>
</div>
<style> div {font: small Verdana; } </style>
<br />
<br />
<br />
<br />
<input type="text" id="location" value="https://ls-360-media.s3.amazonaws.com/production/43a8d4005fb311e4b1342f2341d8faae/71d7cbb05fb311e4bd0f9baf31eb6ee9.mp4" />
<input type="text" id="eyedist" value="0" />
<input type="text" id="screenoffset" value="50" />
<div id="output"></div>
</body>
</html>