add FOSDEM 2019
[slides.git] / fhwn201810 / 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 - OpenStreetMap goes 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: WebVR Using OpenStreetMap Data</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/fhwn201810/">https://slides.kairo.at/fhwn201810/</a></p>
51 <div class="captionedbox-content small">
52 <ul class="small">
53   <li>Created for a presentation at
54     <a href="http://hackathon.fhwn.ac.at/">mobility.builders AR/VR Hackathon 2018</a>
55     in Wiener Neustadt.</li>
56   <li>Written in HTML 5 with CSS 3 and JavaScript.</li>
57   <li>Navigation via links on all slides, via access keys
58    (e.g. "n"/Alt+Shift+N for "next") or back/forward arrow keys</li>
59   <li><a href="#toc">Contents</a></li>
60   <li><a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img
61       alt="Lizenziert unter CC-BY-SA," class="ccinline" src="cc-by-sa.svg"></a>
62     04-10/2018 Robert Kaiser -
63     "Mozilla", "Firefox" and their logos are
64     <a href="http://www.mozilla.org/foundation/trademarks/list.html">trademarks
65     of Mozilla Foundation</a>.</li>
66 </ul>
67 </div>
68 </div>
69 </article>
70
71 <article id="objectivepre" data-title="Objectives">
72 <h1><span>Objectives</span></h1>
73
74 <div class="simplebox">
75 <img src="vrusermoz.jpg" class="slidepic"
76  alt="VR headset user">
77 <ul>
78   <li>Cross-Device nature of <mark>WebVR/WebXR</mark></li>
79   <li>Ease of use of <mark>A-Frame</mark></li>
80   <li>Ability to use <mark>OpenStreetMap data</a></li>
81 </ul>
82 <p class="ensurepicinbox"></p>
83 </div>
84 </article>
85
86 <article id="webvr" data-title="WebVR &amp; WebXR">
87 <h1><span>WebVR &amp; WebXR</span></h1>
88
89 <div class="simplebox">
90 <img src="vruser.jpg" class="slidepic"
91  alt="VR headset user">
92 <ul>
93   <li><a href="https://webvr.info/">WebVR</a>: <mark>Virtual Reality</mark>
94     powered by Web technologies</li>
95   <li>Part of <a href="https://github.com/immersive-web/webxr">WebXR Device API</a>
96     - Mixed Reality (Virtual + Augmented Reality)</li>
97   <li><mark>Open Standard</mark> (proposal), in concert with WebGL, WebAudio
98     and Gamepad APIs</li>
99   <li>Windows: Firefox release, Mac: Nightly/Beta, Linux: in development</li>
100 </ul>
101 <p class="ensurepicinbox"></p>
102 </div>
103 </article>
104
105 <article id="vrmap" data-title="VR Map">
106 <h1><span>VR Map</span></h1>
107
108 <div class="simplebox">
109 <img src="vrmap-small.png" class="slidepic"
110  alt="VR Map in 2D">
111 <ul>
112   <li><mark>Demo</mark> for WebVR with live
113     <a href="https://www.openstreetmap.org/">OpenStreetMap</a> data</li>
114   <li>Usable in 2D mode <mark>on any modern browser</mark></li>
115   <li>Supports headset + controller where WebVR is supported</li>
116   <li>Using <a href="https://aframe.io/">Mozilla A-Frame</a> (see later)</li>
117   <li>Simple: Currently ~80 lines HTML, <mark>~600 lines JS</mark></li>
118 </ul>
119 <p class="ensurepicinbox"></p>
120 </div>
121 </article>
122
123 <article id="vrmapdemo" data-title="VR Map Demo">
124 <h1><span><a href="https://vrmap.kairo.at/">vrmap.kairo.at</a></span></h1>
125
126 <div class="simplebox cent">
127 <a href="https://vrmap.kairo.at/" target="_blank"><img src="vrmap-large.png" class="sshot" alt="VR Map in 2D"></a>
128 </div>
129 </article>
130
131 <article id="code-basics" data-title="Code Basics">
132 <h1><span>Code Basics</span></h1>
133
134 <div class="simplebox">
135 <img src="vrusermoz.jpg" class="slidepic"
136  alt="VR Headset user with Mozilla logos">
137 <ul>
138   <li>The world is flat (in two ways)!</li>
139   <li><mark>Ground tiles</mark> using
140     <a href="https://en.wikipedia.org/wiki/Mercator_projection">Mercator projection</a>,
141     "Mapnik" rendering from <a href="https://www.openstreetmap.org/">OSM</a>
142     via KaiRo's tile caching server</li>
143   <li><mark>Trees</mark> and <mark>buildings</mark>: live OSM data via
144     <a href="https://wiki.openstreetmap.org/wiki/Overpass_API">Overpass API</a></li>
145   <li>Camera/controller setup to support multiple devices for navigating the scene</li>
146   <li>Built with <a href="https://aframe.io/">Mozilla A-Frame</a> library</li>
147 </ul>
148 <p class="ensurepicinbox"></p>
149 </div>
150 </article>
151
152 <article id="aframe" data-title="A-Frame">
153 <h1><span>A-Frame - XR Made Simple</span></h1>
154
155 <div class="simplebox">
156 <img src="aframe-sticker.png" class="slidepic"
157  alt="A-Frame - aframe-io">
158 Example:
159 <pre>
160 &lt;<mark>a-scene</mark>&gt;
161   &lt;a-sphere <small>position="0 1.25 -1" radius="1.25" color="#EF2D5E"</small>&gt;&lt;/a-sphere&gt;
162   &lt;<mark>a-cube</mark> <small>position="-1 0.5 1" rotation="0 0 0" …</small>&gt;
163     &lt;<mark>a-animation</mark> <small>attribute="rotation" … to="0 360 0"</small>&gt;&lt;/a-animation&gt;
164   &lt;/a-cube&gt;
165   &lt;a-cylinder <small>position="1 0.75 1" …</small>&gt;&lt;/a-cylinder&gt;
166   &lt;a-plane <small>…</small>&gt;&lt;/a-plane&gt;
167   &lt;a-sky <small>color="#ECECEC"</small>&gt;&lt;/a-sky&gt;
168 &lt;/a-scene&gt;
169 </pre>
170 <p><a href="https://codepen.io/mozvr/pen/jqERjQ" target="_blank">edit/view</a>
171 - More at <a href="https://aframe.io/">aframe.io</a>
172 <p class="ensurepicinbox"></p>
173 </div>
174 </article>
175
176 <article id="code-details" data-title="Code Details">
177 <h1><span>Code Details</span></h1>
178
179 <div class="simplebox">
180 <img src="vrusermoz.jpg" class="slidepic"
181  alt="VR Headset user with Mozilla logos">
182 <ul>
183   <li><code>index.html</code>: JS includes, start dialog, scene, camera/controller rig</li>
184   <li><code>map.js</code>: variables, load handler, fetch from Overpass API</li>
185   <li><code>conversions.js</code>: coordinate conversions</li>
186   <li><code>position-limit.js</code>: A-Frame component for keeping position above ground</li>
187   <li><code>tiles.js, trees.js, buildings.js</code>: load/draw the 3 types of objects</li>
188   <li><mark><a href="https://github.com/KaiRo-at/vrmap" target="_blank">KaiRo-at/vrmap
189     at GitHub</a></mark></li>
190 </ul>
191 <p class="ensurepicinbox"></p>
192 </div>
193 </article>
194
195 <article id="objectivepost" data-title="Objectives - Recap">
196 <h1><span>Objectives - Recap</span></h1>
197
198 <div class="simplebox">
199 <img src="vruser.jpg" class="slidepic"
200  alt="VR headset user">
201 <ul>
202   <li>Cross-Device nature of <mark>WebVR/WebXR</mark></li>
203   <li>Ease of use of <mark>A-Frame</mark></li>
204   <li>Ability to use <mark>OpenStreetMap data</a></li>
205 </ul>
206 <p class="ensurepicinbox"></p>
207 </div>
208 </article>
209
210 <article id="end" data-title="The End">
211
212 <div class="simplebox endslidecontainer">
213 <h1 class="cent endslidetext"><span>Questions?</span></h1>
214 <h2 class="cent endslidetext"><span><a href="https://vrmap.kairo.at/">vrmap.kairo.at</a></span></h2>
215 <h3 class="cent endslidetext"><span><a href="https://github.com/KaiRo-at/vrmap">github.com/KaiRo-at/vrmap</a></span></h3>
216 <img src="vrmap-large.png" class="sshot endslidepic" alt="VR Map in 2D">
217 </div>
218 </article>
219
220 </body>
221 </html>