-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
477 lines (468 loc) · 16.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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags always come first -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
<script src="bower_components/anchor-js/anchor.min.js"></script>
<title>armthethinker WebVR Experiments</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2 col-xs-12">
<h1 id="this-is-a-personal-sandbox-for-webvr-experiments">This is a personal sandbox for webVR experiments</h1>
<p>Everything is built with <a href="https://aframe.io">A-Frame</a>. Order is chronological. Keyboard shortcuts are largely for development or demonstration purposes. To read design documentation and my process for experiments six and later, see my Medium collection <a href="https://medium.com/humane-virtuality">Humane Virtuality</a>.</p>
<p>Comments, suggestions, and pull requests welcome.</p>
<p><img src="https://raw.githubusercontent.com/armthethinker/webVR-experiments/master/assets/img/heroes/hv-icon.png" alt="Humane Virtuality Logo" title="Humane Virtuality Logo"></p>
<h2 id="experiments">Experiments</h2>
<ol>
<li><a href="#1-hello-world">Hello World</a></li>
<li><a href="#2-ui-test">UI Test</a></li>
<li><a href="#3-figures-in-space">Figures in Space</a></li>
<li><a href="#4-viewpoint">ViewPoint</a></li>
<li><a href="#5-missed-connections">Terrain (Previously Missed Connections)</a></li>
<li><a href="#6-head-tracked-transformations">Head Tracked Transformations</a></li>
<li><a href="#7-product-selection-customization">Product Selection & Customization</a></li>
<li><a href="#8-video-controls">Video Controls</a></li>
<li><a href="#9-solar-system">Solar System</a></li>
<li><a href="#10-spacevr-simulator">SpaceVR Simulator</a></li>
<li><a href="#11-environment-traversal">Environment Traversal</a></li>
<li><a href="#12-mhci-portugal">MHCI Portugal</a></li>
</ol>
<p><h3 id="1-hello-world">1. <a href="1--helloworld.html">Hello World</a></h3>
<img src="https://raw.githubusercontent.com/armthethinker/webVR-experiments/master/assets/img/heroes/hero-1.jpg" alt="Image for experiment 1"></p>
<p>A basic world with random components. Made while learning A-Frame.</p>
<p><strong>Guiding Question:</strong> How do I use A-Frame?</p>
<table>
<thead>
<tr>
<th>Action</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td>Movement</td>
<td style="text-align:center"><code>W A S D</code></td>
</tr>
</tbody>
</table>
<p><h3 id="2-ui-test">2. <a href="2--ui.html">UI Test</a></h3>
<img src="https://raw.githubusercontent.com/armthethinker/webVR-experiments/master/assets/img/heroes/hero-2.jpg" alt="Image for experiment 2"></p>
<p>A basic test with cylinder UI.</p>
<p><strong>Guiding Question:</strong> How easy is it to create a UI with a single cylinder?</p>
<table>
<thead>
<tr>
<th>Action</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td>Movement</td>
<td style="text-align:center"><code>W A S D</code></td>
</tr>
</tbody>
</table>
<p><h3 id="3-figures-in-space">3. <a href="3--figures-in-space.html">Figures in Space</a></h3>
<img src="https://raw.githubusercontent.com/armthethinker/webVR-experiments/master/assets/img/heroes/hero-3.jpg" alt="Image for experiment 3"></p>
<p>Testing a project for IXDS.</p>
<p><strong>Guiding Question:</strong> Is it realistic to use A-Frame in the short timeframe of a class project?</p>
<table>
<thead>
<tr>
<th>Action</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td>Movement</td>
<td style="text-align:center"><code>W A S D</code></td>
</tr>
</tbody>
</table>
<p><h3 id="4-viewpoint">4. <a href="4--viewpoint.html">ViewPoint</a></h3>
<img src="https://raw.githubusercontent.com/armthethinker/webVR-experiments/master/assets/img/heroes/hero-4.gif" alt="Image for experiment 4"></p>
<p>The working model for a class project (IXDS public display).</p>
<p><a href="http://andrewrmchugh.rocks/projects/viewpoint.php">Case study</a></p>
<p><strong>Guiding Question:</strong> Can A-Frame be used to present designs for an installation piece in a museum?</p>
<p>Team Members: Iris Wu, Tiffany Wang, Ryan Huber</p>
<table>
<thead>
<tr>
<th>Action</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td>Movement</td>
<td style="text-align:center"><code>W A S D</code></td>
</tr>
<tr>
<td>God Camera</td>
<td style="text-align:center"><code>G</code></td>
</tr>
<tr>
<td>Toggle Click Interactions</td>
<td style="text-align:center"><code>C</code></td>
</tr>
</tbody>
</table>
<p><h3 id="5-missed-connections">5. <a href="5--missed-connections.html">Terrain (Previously Missed Connections)</a></h3>
<img src="https://raw.githubusercontent.com/armthethinker/webVR-experiments/master/assets/img/heroes/hero-5.jpg" alt="Image for experiment 5"></p>
<p>Experience the missed connections section of Craigslist in a surreal city environment. Prototype and final presentation for a class project (Programming Usable Interfaces).</p>
<p><strong>Guiding Question:</strong> Given (another) short timeframe, can we build more with in A-Frame than with Swift?</p>
<p>Team Members: Andrew Novotny, Joel Rodrigues, & Rachel Ng</p>
<table>
<thead>
<tr>
<th>Action</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td>Selection</td>
<td style="text-align:center"><code>Gaze</code></td>
</tr>
<tr>
<td>Movement</td>
<td style="text-align:center"><code>W A S D</code></td>
</tr>
<tr>
<td>Topographic Camera</td>
<td style="text-align:center"><code>G</code></td>
</tr>
<tr>
<td>Force load text, if it doesn't load</td>
<td style="text-align:center"><code>B</code></td>
</tr>
</tbody>
</table>
<p><h3 id="6-head-tracked-transformations">6. <a href="6--head-tracked-transformations.html">Head Tracked Transformations</a></h3>
<img src="https://raw.githubusercontent.com/armthethinker/webVR-experiments/master/assets/img/heroes/hero-6.gif" alt="Image for experiment 6"></p>
<p>For headsets without positional tracking (e.g. Google Cardboard), how can we allow position-esque movement? In this set of experiments, the blocks mutate based on the selected transformation.</p>
<p><a href="https://medium.com/humane-virtuality/head-tracked-transformations-e7102d3c9789">Case study</a></p>
<p><strong>Guiding Question:</strong> Can head rotations be tied to an object to allow position-esque movements?</p>
<table>
<thead>
<tr>
<th>Action</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td>Movement</td>
<td style="text-align:center"><code>W A S D</code></td>
</tr>
<tr>
<td>Toggle target to be locked to camera or to world</td>
<td style="text-align:center"><code>T</code></td>
</tr>
<tr>
<td>Toggle building</td>
<td style="text-align:center"><code>B</code></td>
</tr>
<tr>
<td>Toggle pillars</td>
<td style="text-align:center"><code>P</code></td>
</tr>
<tr>
<td>Toggle fog</td>
<td style="text-align:center"><code>F</code></td>
</tr>
<tr>
<td>console.log(Camera Attributes, activeTarget Attributes)</td>
<td style="text-align:center"><code>C</code></td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Transformation</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td>Rotate target with human camera rotation</td>
<td style="text-align:center"><code>1</code></td>
</tr>
<tr>
<td>Rotate target with human camera rotation<br><small>Includes reasonable magic numbers: 4x of horizontal rotation, 3x of vertical rotation</small></td>
<td style="text-align:center"><code>2</code></td>
</tr>
<tr>
<td><small><strong>Default</strong></small><br>Rotate target inversely with human camera rotation<br><small>Includes reasonable magic numbers: -4x of horizontal rotation, -3x of vertical rotation</small></td>
<td style="text-align:center"><code>3</code></td>
</tr>
<tr>
<td>Move target in x-axis based on z-position of human camera</td>
<td style="text-align:center"><code>4</code></td>
</tr>
<tr>
<td>Rotate target in x-axis based on z-position of human camera</td>
<td style="text-align:center"><code>5</code></td>
</tr>
</tbody>
</table>
<p><h3 id="7-product-selection-customization">7. <a href="7--product-selection-customization.html">Product Selection Customization</a></h3>
<img src="https://raw.githubusercontent.com/armthethinker/webVR-experiments/master/assets/img/heroes/hero-7.gif" alt="Image for experiment 7"></p>
<p>Looking at the differences in prototyping with a single planar mockup, a curved mockup, and a three dimensional mockup.</p>
<p><a href="https://medium.com/humane-virtuality/product-presentation-in-virtual-reality-28f98ca2eb9">Case study</a></p>
<p><strong>Guiding Question:</strong> What can be learned by taking a design from the web and translating it into VR?</p>
<table>
<thead>
<tr>
<th>Action</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td>Movement</td>
<td style="text-align:center"><code>W A S D</code></td>
</tr>
<tr>
<td>console.log(Targets)</td>
<td style="text-align:center"><code>C</code></td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Mockup Selection</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td>Planar mockup</td>
<td style="text-align:center"><code>1</code></td>
</tr>
<tr>
<td>Curved mockup</td>
<td style="text-align:center"><code>2</code></td>
</tr>
<tr>
<td>3D mockups</td>
<td style="text-align:center"><code>3</code></td>
</tr>
</tbody>
</table>
<p><h3 id="8-video-controls">8. <a href="8--video-controls.html">Video Controls - Work in Progress</a></h3>
<img src="https://raw.githubusercontent.com/armthethinker/webVR-experiments/master/assets/img/heroes/hero-8.jpg" alt="Image for experiment 8"></p>
<p>Well-designed video controls for spherical videos. Inspired by <a href="https://github.com/oscarmarinmiro/aframe-video-controls">@oscarmarinmiro</a>.</p>
<p><strong>Guiding Question:</strong> How do controls for videos change when the content is all around you?</p>
<table>
<thead>
<tr>
<th>Action</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td>Selection</td>
<td style="text-align:center"><code>Gaze</code> or <code>Click</code></td>
</tr>
</tbody>
</table>
<p><h3 id="9-solar-system">9. <a href="9--solar-system.html">Solar System</a></h3>
<img src="https://raw.githubusercontent.com/armthethinker/webVR-experiments/master/assets/img/heroes/hero-9.jpg" alt="Image for experiment 9"></p>
<p>After hearing a podcast on <a href="http://www.spacevr.co/">SpaceVR</a>, I was inspired to create an experience based on their project. However, for this prototype, I decided I was building in the wrong direction. So, I wrapped it up and started work on experiment 10. It now stands as a solar system simulator, with scaled proportions.</p>
<p><strong>Guiding Question:</strong> What does it feel like to see earth from a satellite point-of-view?</p>
<table>
<thead>
<tr>
<th>Action</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td>Selection</td>
<td style="text-align:center"><code>Gaze</code> or <code>Click</code></td>
</tr>
</tbody>
</table>
<p><h3 id="10-spacevr-simulator">10. <a href="10--spacevr-simulator.html">SpaceVR Simulator</a></h3>
<img src="https://raw.githubusercontent.com/armthethinker/webVR-experiments/master/assets/img/heroes/hero-10.gif" alt="Image for experiment 10"></p>
<p>This is my second attempt to build a <a href="http://www.spacevr.co/">SpaceVR</a> simulator. This time, I had a clearer project in-mind: less robust, more to the point. This time it took me less than two hours to throw it all together.</p>
<p><strong>Guiding Question:</strong> What does it feel like to see earth from a satellite point-of-view?</p>
<table>
<thead>
<tr>
<th>Action</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td>Selection</td>
<td style="text-align:center"><code>Gaze</code> or <code>Click</code></td>
</tr>
</tbody>
</table>
<p><h3 id="11-environment-traversal">11. <a href="11--environment-traversal.html">Environment Traversal</a></h3>
<img src="https://raw.githubusercontent.com/armthethinker/webVR-experiments/master/assets/img/heroes/hero-11.gif" alt="Image for experiment 11"></p>
<p><strong>Guiding Question:</strong> What are the best ways to move in VR without position controls?</p>
<p><a href="https://medium.com/humane-virtuality/environment-traversal-in-vr-bebc10417761#.687h6a2j1">Case study</a></p>
<p><em>Devs</em>: Each transition can be selected by passing its name into <code>settings.transition</code>. Short and long alternatives are available for each transition as well with the exception of the individual <code>Jump</code> and <code>Fade</code> transitions.</p>
<table>
<thead>
<tr>
<th>Transition Name</th>
<th>Action</th>
<th>Parameters</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>Jump</code></td>
<td>Instantly move from one position to another.</td>
<td><code>position</code></td>
<td style="text-align:center"><code>1</code></td>
</tr>
<tr>
<td><code>Fade</code></td>
<td>View fades into black, then back up. Useless by itself. Used in <code>Fade Jump</code> and can be used in other custom transitions.</td>
<td><code>duration, beginTime, easing, middleFunction</code></td>
<td style="text-align:center">N/A</td>
</tr>
<tr>
<td><code>Fade Jump</code></td>
<td>View fades into black. Position instantly changes. View fades back up.</td>
<td><code>duration, beginTime, easing, position</code></td>
<td style="text-align:center"><code>2</code></td>
</tr>
<tr>
<td><code>Micro-Movements</code></td>
<td>Many short jumps between the current position and final position.</td>
<td><code>position, stepCount, duration</code></td>
<td style="text-align:center"><code>3</code></td>
</tr>
<tr>
<td><code>Animate</code></td>
<td>Continuous, linear movement from one location to another.</td>
<td><code>position, speed</code></td>
<td style="text-align:center"><code>4</code></td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Action</th>
<th style="text-align:center">Key</th>
</tr>
</thead>
<tbody>
<tr>
<td>Selection</td>
<td style="text-align:center"><code>Gaze</code> or <code>Click</code></td>
</tr>
<tr>
<td>Toggle to short version of transition</td>
<td style="text-align:center"><code>-</code></td>
</tr>
<tr>
<td>Toggle to long version of transition</td>
<td style="text-align:center"><code>=</code></td>
</tr>
<tr>
<td>console.log(Camera Position)</td>
<td style="text-align:center"><code>C</code></td>
</tr>
</tbody>
</table>
<p>Example:</p>
<pre><code class="lang-js">// Fade Jump
settings = {
transition: 'Fade Jump'
}
// Fade Jump Long
settings = {
transition: 'Fade Jump Long'
}
</code></pre>
<p><h3 id="12-mhci-portugal">12. <a href="12--mhci-portugal.html">MHCI Portugal - Work in Progress</a></h3>
<img src="https://raw.githubusercontent.com/armthethinker/webVR-experiments/master/assets/img/heroes/hero-12.jpg" alt="Image for experiment 12"></p>
<p><del><strong>Guiding Question:</strong> What are the best ways to move in VR without position controls?</del></p>
<h2 id="setup">Setup</h2>
<pre><code class="lang-bash">$ npm install
$ bower update
$ grunt
</code></pre>
<p>Grunt uses <a href="https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei">LiveReload</a>.</p>
<p>To deploy,</p>
<pre><code class="lang-bash">$ npm run deploy
</code></pre>
<p>Personal site: <a href="http://andrewrmchugh.rocks">andrewrmchugh.rocks</a>.</p>
</div>
</div>
</div>
</body>
<style>
h1,
h2,
h3{
margin-top: 80px;
}
h2{
font-style: italic;
}
h2 + h3{
margin-top: 30px;
}
h3{
background-color: aliceblue;
padding: 10px;
margin-left: -10px;
margin-right: -10px;
border-radius: 6px 6px 0 0;
box-shadow: rgba(0,0,0,0.1) 0px 15px 40px;
margin-bottom: 20px;
position: relative;
}
pre code{
padding: .6rem .8rem;
font-size: 90%;
color: #bd4147;
background-color: #f7f7f9;
border-radius: .25rem;
display: block;
}
code{
padding: 0.1rem 0.3rem;
display: inline-block;
}
html{
padding-bottom: 100px;
}
h3 + p > img,
h3 + img{
width: 100%;
}
</style>
<script>
var table = document.querySelectorAll('table');
for(i = 0; i < table.length; i++)
table[i].className = "table";
anchors.options = {
visible: 'always',
truncate: 4
}
anchors.add('h3');
</script>
</html>