d49d482c55fad53c390d028c2d0e9b3fa0cb13fc
[slides.git] / tsmeetup201809 / index.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5   <meta name="Author" content="KaiRo - Robert Kaiser">
6   <title>VR Map - OpenStreetMap goes WebVR</title>
7   <link rel="stylesheet" type="text/css" href="slides.css">
8   <script type="text/javascript" src="slides.js"></script>
9   <link rel="contents" href="#index" title="Überblick">
10   <link rel="index" id="link-toc" href="#toc" title="Inhalt">
11   <link rel="start" id="link-start" href="#index" title="Start">
12 </head>
13 <body onload="docLoaded();">
14 <header id="header"><div id="header-text">VR Map</div>
15   <div id="subheader-text"></div>
16   <a id="headerlogo" href="#index" title="Startseite">Mozilla</a>
17 </header>
18 <nav id="slidenav">
19   <a href="#toc" id="nav-toc" accesskey="t">toc</a> ||
20   <a href="#index" id="nav-start" accesskey="s">start</a> ||
21   <a href="#" id="nav-prev" accesskey="p" hidden>&lt; back</a>
22   <span id="nav-prev-nolink" class="nolink">&lt; back</span> |
23   <a href="#" id="nav-next" id="goNext" accesskey="n" hidden>fwd &gt;</a>
24   <span id="nav-next-nolink" class="nolink">fwd &gt;</span>
25 </nav>
26
27 <article id="toc" data-title="Inhalt">
28 <h1><span>Table of Contents</span></h1>
29 <h2>VR Map: Using OpenStreetMap Data in WebVR</h2>
30
31 <div class="captionedbox">
32 <p class="captionedbox-caption">The following slides are available in this presentation:</p>
33 <div class="captionedbox-content">
34 <ul id="toc-list">
35 </ul>
36 </article>
37
38 <article id="index" data-title="Start Page" data-seconds="600">
39 <h1><span>VR Map: Using OpenStreetMap Data in WebVR</span></h1>
40 <h2>Simple GeoData Visualization with A-Frame</h2>
41
42 <div class="simplebox decofont">
43 <mark><a href="http://home.kairo.at/">Robert Kaiser</a></mark>,
44 "KaiRo" &lt;kairo@kairo.at&gt;
45 <br><small>Mozilla Tech Speaker</small>
46 </div>
47
48 <div class="captionedbox">
49 <p class="captionedbox-caption decofont">Slides:
50   <a href="https://slides.kairo.at/tsmettup201809/">https://slides.kairo.at/tsmeetup201809/</a></p>
51 <div class="captionedbox-content small">
52 <ul class="small">
53   <li>Created for a presentation at the Mozilla Tech Speakers Meetup 2018 in Paris.</li>
54   <li>Written in HTML 5 with CSS 3 and JavaScript.</li>
55   <li>Navigation via links on all slides, via access keys
56    (e.g. "n"/Alt+Shift+N for "next") or back/forward arrow keys</li>
57   <li><a href="#toc">Contents</a></li>
58   <li><a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img
59       alt="Lizenziert unter CC-BY-SA," class="ccinline" src="cc-by-sa.svg"></a>
60     09/2018 Robert Kaiser -
61     "Mozilla", "Firefox" and their logos are
62     <a href="http://www.mozilla.org/foundation/trademarks/list.html">trademarks
63     of Mozilla Foundation</a>.</li>
64 </ul>
65 </div>
66 </div>
67 </article>
68
69 <article id="webvr" data-title="WebVR &amp; WebXR">
70 <h1><span>WebVR &amp; WebXR</span></h1>
71
72 <div class="simplebox">
73 <img src="vruser.jpg" class="slidepic"
74  alt="VR headset user">
75 <ul>
76   <li><a href="https://webvr.info/">WebVR</a>: <mark>Virtual Reality</mark>
77     powered by Web technologies</li>
78   <li>Part of <a href="https://github.com/immersive-web/webxr">WebXR Device API</a>
79     - Mixed Reality (Virtual + Augmented Reality)</li>
80   <li><mark>Open Standard</mark> (proposal), in concert with WebGL, WebAudio
81     and Gamepad APIs</li>
82   <li>Windows: Firefox release, Mac: Nightly/Beta, Linux: in development</li>
83 </ul>
84 <p class="ensurepicinbox"></p>
85 </div>
86 </article>
87
88 <article id="vrmap" data-title="VR Map">
89 <h1><span>VR Map</span></h1>
90
91 <div class="simplebox">
92 <img src="vrmap-small.png" class="slidepic"
93  alt="VR Map in 2D">
94 <ul>
95   <li><mark>Demo</mark> for WebVR with live
96     <a href="https://www.openstreetmap.org/">OpenStreetMap</a> data</li>
97   <li>Usable in 2D mode <mark>on any modern browser</mark></li>
98   <li>Supports headset + controller where WebVR is supported</li>
99   <li>Simple: Currently ~80 lines HTML, <mark>~600 lines JS</mark></li>
100 </ul>
101 <p class="ensurepicinbox"></p>
102 </div>
103 </article>
104
105 <article id="code-basics" data-title="Code Basics">
106 <h1><span>Code Basics</span></h1>
107
108 <div class="simplebox">
109 <img src="vrusermoz.jpg" class="slidepic"
110  alt="VR Headset user with Mozilla logos">
111 <ul>
112   <li>The world is flat (in two ways)!</li>
113   <li>Ground: <mark>image tiles</mark> as known from
114     <a href="https://www.openstreetmap.org/">OSM</a></li>
115   <li><mark>Trees</mark> and <mark>buildings</mark>: live OSM data via
116     <a href="https://wiki.openstreetmap.org/wiki/Overpass_API">Overpass API</a></li>
117   <li>Camera/controller setup to support multiple devices for navigating the scene</li>
118   <li>Built with <a href="https://aframe.io/">Mozilla A-Frame</a> library</li>
119 </ul>
120 <p class="ensurepicinbox"></p>
121 </div>
122 </article>
123
124 <article id="aframe" data-title="A-Frame">
125 <h1><span>A-Frame - XR Made Simple</span></h1>
126
127 <div class="simplebox">
128 <img src="aframe-sticker.png" class="slidepic"
129  alt="A-Frame - aframe-io">
130 Example:
131 <pre>
132 &lt;<mark>a-scene</mark>&gt;
133   &lt;a-sphere <small>position="0 1.25 -1" radius="1.25" color="#EF2D5E"</small>&gt;&lt;/a-sphere&gt;
134   &lt;<mark>a-cube</mark> <small>position="-1 0.5 1" rotation="0 0 0" …</small>&gt;
135     &lt;<mark>a-animation</mark> <small>attribute="rotation" … to="0 360 0"</small>&gt;&lt;/a-animation&gt;
136   &lt;/a-cube&gt;
137   &lt;a-cylinder <small>position="1 0.75 1" …</small>&gt;&lt;/a-cylinder&gt;
138   &lt;a-plane <small>…</small>&gt;&lt;/a-plane&gt;
139   &lt;a-sky <small>color="#ECECEC"</small>&gt;&lt;/a-sky&gt;
140 &lt;/a-scene&gt;
141 </pre>
142 <p><a href="https://codepen.io/mozvr/pen/jqERjQ" target="_blank">edit/view</a>
143 - More at <a href="https://aframe.io/">aframe.io</a>
144 <p class="ensurepicinbox"></p>
145 </div>
146 </article>
147
148 <article id="code-details" data-title="Code Details">
149 <h1><span>Code Details</span></h1>
150
151 <div class="simplebox">
152 <img src="vrusermoz.jpg" class="slidepic"
153  alt="VR Headset user with Mozilla logos">
154 <ul>
155   <li><code>index.html</code>: JS includes, start dialog, scene, camera/controller rig</li>
156   <li><code>map.js</code>: variables, load handler, fetch from Overpass API</li>
157   <li><code>conversions.js</code>: coordinate conversions</li>
158   <li><code>position-limit.js</code>: A-Frame component for keeping position above ground</li>
159   <li><code>tiles.js, trees.js, buildings.js</code>: load/draw the 3 types of objects</li>
160   <li><mark><a href="https://github.com/KaiRo-at/vrmap" target="_blank">KaiRo-at/vrmap
161     at GitHub</a></mark></li>
162 </ul>
163 <p class="ensurepicinbox"></p>
164 </div>
165 </article>
166
167 <article id="vrmapdemo" data-title="VR Map Demo">
168 <h1><span><a href="https://vrmap.kairo.at/">vrmap.kairo.at</a></span></h1>
169
170 <div class="simplebox cent">
171 <a href="https://vrmap.kairo.at/" target="_blank"><img src="vrmap-large.png" class="sshot" alt="VR Map in 2D"></a>
172 </div>
173 </article>
174
175 <article id="end" data-title="The End">
176
177 <div class="simplebox endslidecontainer">
178 <h1 class="cent endslidetext"><span>Questions?</span></h1>
179 <h2 class="cent endslidetext"><span><a href="https://vrmap.kairo.at/">vrmap.kairo.at</a></span></h2>
180 <h3 class="cent endslidetext"><span><a href="https://github.com/KaiRo-at/vrmap">github.com/KaiRo-at/vrmap</a></span></h3>
181 <img src="vrmap-large.png" class="sshot endslidepic" alt="VR Map in 2D">
182 </div>
183 </article>
184
185 </body>
186 </html>