add DACHFest to index
[slides.git] / dachfest2018 / 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>
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: 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 </div>
45
46 <div class="captionedbox">
47 <p class="captionedbox-caption decofont"><span id="hidesdesc" class="noadvance">Slides:</span>
48   <a href="https://slides.kairo.at/dachfest2018/">https://slides.kairo.at/dachfest2018/</a></p>
49 <div class="captionedbox-content small">
50 <ul class="small" id="slidesdesc">
51   <li>Created for a presentation at
52     <a href="https://dachfest.com/">DACHFest 2018</a>
53     in Munich.</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     04-11/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="introduction" data-title="Introduction - KaiRo">
70 <h1><span>Robert Kaiser - KaiRo</span></h1>
71
72 <div class="simplebox">
73 <img src="kairo.jpg" class="slidepic"
74  alt="Robert Kaiser">
75 <ul>
76   <li>kairo@kairo.at /  <a href="https://home.kairo.at/">home.kairo.at</a></li>
77   <li><mark>Mozilla Tech Speaker</mark></li>
78   <li>Based in Vienna, Austria</li>
79   <li>Not on most major social networks</li>
80   <li>But on <a href="https://joindiaspora.com/people/eb2e0ec0ec0d04bc">Diaspora*</a>,
81       <a href="https://mozillians.org/en-US/u/KaiRo/">Mozillians</a>,
82       <a href="https://telegram.me/KaiRo_at">Telegram</a>,
83       <a href="https://www.linkedin.com/in/robert-kaiser-kairo-at">LinkedIn</a>,
84       <a href="https://github.com/KaiRo-at">KaiRo-at at GitHub</a></li>
85 </ul>
86 <p class="ensurepicinbox"></p>
87 </div>
88 </article>
89
90 <article id="objectivepre" data-title="Objectives">
91 <h1><span>Objectives</span></h1>
92
93 <div class="simplebox">
94 <img src="vrusermoz.jpg" class="slidepic"
95  alt="VR headset user">
96 <ul>
97   <li>Cross-Device nature of <mark>WebVR/WebXR</mark></li>
98   <li>Ease of use of <mark>A-Frame</mark></li>
99   <li>Ability to use <mark>OpenStreetMap data</mark></li>
100 </ul>
101 <p class="ensurepicinbox"></p>
102 </div>
103 </article>
104
105 <article id="webvr" data-title="WebVR &amp; WebXR">
106 <h1><span>WebVR &amp; WebXR</span></h1>
107
108 <div class="simplebox">
109 <img src="vruser.jpg" class="slidepic"
110  alt="VR headset user">
111 <ul>
112   <li><a href="https://webvr.info/">WebVR</a>: <mark>Virtual Reality</mark>
113     powered by Web technologies</li>
114   <li>Part of <a href="https://github.com/immersive-web/webxr">WebXR Device API</a>
115     - Mixed Reality (Virtual + Augmented Reality)</li>
116   <li><mark>Open Standard</mark> (proposal), in concert with WebGL, WebAudio
117     and Gamepad APIs</li>
118   <li>Windows: Firefox release, Mac: Nightly/Beta, Linux: in development</li>
119   <li>Standalone: Firefox Reality, Oculus Browser, Samsung Internet</li>
120 </ul>
121 <p class="ensurepicinbox"></p>
122 </div>
123 </article>
124
125 <article id="vrmap" data-title="VR Map">
126 <h1><span>VR Map</span></h1>
127
128 <div class="simplebox">
129 <img src="vrmap-small.png" class="slidepic"
130  alt="VR Map in 2D">
131 <ul>
132   <li><mark>Demo</mark> for WebVR with live
133     <a href="https://www.openstreetmap.org/">OpenStreetMap</a> data</li>
134   <li>Usable in 2D mode <mark>on any modern browser</mark></li>
135   <li>Supports headset + controller where WebVR is supported</li>
136   <li>Using <a href="https://aframe.io/">Mozilla A-Frame</a> (see later)</li>
137   <li>Simple: Currently ~80 lines HTML, <mark>~600 lines JS</mark></li>
138 </ul>
139 <p class="ensurepicinbox"></p>
140 </div>
141 </article>
142
143 <article id="vrmapdemo" data-title="VR Map Demo">
144 <h1><span><a href="https://vrmap.kairo.at/">vrmap.kairo.at</a></span></h1>
145
146 <div class="simplebox cent">
147 <a href="https://vrmap.kairo.at/" target="_blank"><img src="vrmap-large.png" class="sshot" alt="VR Map in 2D"></a>
148 </div>
149 </article>
150
151 <article id="code-basics" data-title="Code Basics">
152 <h1><span>Code Basics</span></h1>
153
154 <div class="simplebox">
155 <img src="vrusermoz.jpg" class="slidepic"
156  alt="VR Headset user with Mozilla logos">
157 <ul>
158   <li>The world is flat (in two ways)!</li>
159   <li><mark>Ground tiles</mark> using
160     <a href="https://en.wikipedia.org/wiki/Mercator_projection">Mercator projection</a>,
161     "Mapnik" rendering from <a href="https://www.openstreetmap.org/">OSM</a>
162     via KaiRo's tile caching server</li>
163   <li><mark>Trees</mark> and <mark>buildings</mark>: live OSM data via
164     <a href="https://wiki.openstreetmap.org/wiki/Overpass_API">Overpass API</a></li>
165   <li>Camera/controller setup to support multiple devices for navigating the scene</li>
166   <li>Built with <a href="https://aframe.io/">Mozilla A-Frame</a> library</li>
167 </ul>
168 <p class="ensurepicinbox"></p>
169 </div>
170 </article>
171
172 <article id="aframe" data-title="A-Frame">
173 <h1><span>A-Frame - XR Made Simple</span></h1>
174
175 <div class="simplebox">
176 <img src="aframe-sticker.png" class="slidepic"
177  alt="A-Frame - aframe-io">
178 Example:
179 <pre>
180 &lt;<mark>a-scene</mark>&gt;
181   &lt;a-sphere <small>position="0 1.25 -1" radius="1.25" color="#EF2D5E"</small>&gt;&lt;/a-sphere&gt;
182   &lt;<mark>a-cube</mark> <small>position="-1 0.5 1" rotation="0 0 0" …</small>&gt;
183     &lt;<mark>a-animation</mark> <small>attribute="rotation" … to="0 360 0"</small>&gt;&lt;/a-animation&gt;
184   &lt;/a-cube&gt;
185   &lt;a-cylinder <small>position="1 0.75 1" …</small>&gt;&lt;/a-cylinder&gt;
186   &lt;a-plane <small>…</small>&gt;&lt;/a-plane&gt;
187   &lt;a-sky <small>color="#ECECEC"</small>&gt;&lt;/a-sky&gt;
188 &lt;/a-scene&gt;
189 </pre>
190 <p><a href="https://codepen.io/mozvr/pen/jqERjQ" target="_blank">edit/view</a>
191 - More at <a href="https://aframe.io/">aframe.io</a>
192 <p class="ensurepicinbox"></p>
193 </div>
194 </article>
195
196 <article id="code-details" data-title="Code Details">
197 <h1><span>Code Details</span></h1>
198
199 <div class="simplebox">
200 <img src="vrusermoz.jpg" class="slidepic"
201  alt="VR Headset user with Mozilla logos">
202 <ul>
203   <li><code>index.html</code>: JS includes, start dialog, scene, camera/controller rig</li>
204   <li><code>map.js</code>: variables, load handler, fetch from Overpass API</li>
205   <li><code>conversions.js</code>: coordinate conversions</li>
206   <li><code>position-limit.js</code>: A-Frame component for keeping position above ground</li>
207   <li><code>tiles.js, trees.js, buildings.js</code>: load/draw the 3 types of objects</li>
208   <li><mark><a href="https://github.com/KaiRo-at/vrmap" target="_blank">KaiRo-at/vrmap
209     at GitHub</a></mark></li>
210 </ul>
211 <p class="ensurepicinbox"></p>
212 </div>
213 </article>
214
215 <article id="objectivepost" data-title="Objectives - Recap">
216 <h1><span>Objectives - Recap</span></h1>
217
218 <div class="simplebox">
219 <img src="vruser.jpg" class="slidepic"
220  alt="VR headset user">
221 <ul>
222   <li>Cross-Device nature of <mark>WebVR/WebXR</mark></li>
223   <li>Ease of use of <mark>A-Frame</mark></li>
224   <li>Ability to use <mark>OpenStreetMap data</mark></li>
225 </ul>
226 <p class="ensurepicinbox"></p>
227 </div>
228 </article>
229
230 <article id="makeyourown" data-title="Make It Your Own">
231 <h1><span>Make It Your Own</span></h1>
232
233 <div class="simplebox" style="position: relative;">
234 <div style="max-width: 60%; max-height: 18em; position: relative; z-index: 2;">
235 <img src="tune3dmr.jpg" class="sshot" alt="tune3dmr">
236 <br><mark>tune3DMR</mark>
237 </div>
238 <div style="max-width: 60%; max-height: 18em; position: absolute; right: 0; top: 2em; z-index: 1; text-align: right;">
239 <mark>OSMRail</mark><br>
240 <img src="OSMRail.jpg" class="sshot" alt="OSMRail">
241 </div>
242 </div>
243 </article>
244
245 <article id="end" data-title="The End">
246
247 <div class="simplebox endslidecontainer">
248 <h1 class="cent endslidetext"><span>Questions?</span></h1>
249 <h2 class="cent endslidetext"><span><a href="https://vrmap.kairo.at/">vrmap.kairo.at</a></span></h2>
250 <h3 class="cent endslidetext"><span><a href="https://github.com/KaiRo-at/vrmap">github.com/KaiRo-at/vrmap</a></span></h3>
251 <img src="vrmap-large.png" class="sshot endslidepic" alt="VR Map in 2D">
252 </div>
253 </article>
254
255 </body>
256 </html>