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">
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>
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>< back</a>
22 <span id="nav-prev-nolink" class="nolink">< back</span> |
23 <a href="#" id="nav-next" id="goNext" accesskey="n" hidden>fwd ></a>
24 <span id="nav-next-nolink" class="nolink">fwd ></span>
27 <article id="toc" data-title="Inhalt">
28 <h1><span>Table of Contents</span></h1>
29 <h2>VR Map - OpenStreetMap goes WebVR</h2>
31 <div class="captionedbox">
32 <p class="captionedbox-caption">The following slides are available in this presentation:</p>
33 <div class="captionedbox-content">
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>
42 <div class="simplebox decofont">
43 <mark><a href="http://home.kairo.at/">Robert Kaiser</a></mark>
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>
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>
69 <article id="introduction" data-title="Introduction - KaiRo">
70 <h1><span>Robert Kaiser - KaiRo</span></h1>
72 <div class="simplebox">
73 <img src="kairo.jpg" class="slidepic"
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>
86 <p class="ensurepicinbox"></p>
90 <article id="objectivepre" data-title="Objectives">
91 <h1><span>Objectives</span></h1>
93 <div class="simplebox">
94 <img src="vrusermoz.jpg" class="slidepic"
95 alt="VR headset user">
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>
101 <p class="ensurepicinbox"></p>
105 <article id="webvr" data-title="WebVR & WebXR">
106 <h1><span>WebVR & WebXR</span></h1>
108 <div class="simplebox">
109 <img src="vruser.jpg" class="slidepic"
110 alt="VR headset user">
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>
121 <p class="ensurepicinbox"></p>
125 <article id="vrmap" data-title="VR Map">
126 <h1><span>VR Map</span></h1>
128 <div class="simplebox">
129 <img src="vrmap-small.png" class="slidepic"
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>
139 <p class="ensurepicinbox"></p>
143 <article id="vrmapdemo" data-title="VR Map Demo">
144 <h1><span><a href="https://vrmap.kairo.at/">vrmap.kairo.at</a></span></h1>
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>
151 <article id="code-basics" data-title="Code Basics">
152 <h1><span>Code Basics</span></h1>
154 <div class="simplebox">
155 <img src="vrusermoz.jpg" class="slidepic"
156 alt="VR Headset user with Mozilla logos">
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>
168 <p class="ensurepicinbox"></p>
172 <article id="aframe" data-title="A-Frame">
173 <h1><span>A-Frame - XR Made Simple</span></h1>
175 <div class="simplebox">
176 <img src="aframe-sticker.png" class="slidepic"
177 alt="A-Frame - aframe-io">
180 <<mark>a-scene</mark>>
181 <a-sphere <small>position="0 1.25 -1" radius="1.25" color="#EF2D5E"</small>></a-sphere>
182 <<mark>a-cube</mark> <small>position="-1 0.5 1" rotation="0 0 0" …</small>>
183 <<mark>a-animation</mark> <small>attribute="rotation" … to="0 360 0"</small>></a-animation>
185 <a-cylinder <small>position="1 0.75 1" …</small>></a-cylinder>
186 <a-plane <small>…</small>></a-plane>
187 <a-sky <small>color="#ECECEC"</small>></a-sky>
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>
196 <article id="code-details" data-title="Code Details">
197 <h1><span>Code Details</span></h1>
199 <div class="simplebox">
200 <img src="vrusermoz.jpg" class="slidepic"
201 alt="VR Headset user with Mozilla logos">
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>
211 <p class="ensurepicinbox"></p>
215 <article id="objectivepost" data-title="Objectives - Recap">
216 <h1><span>Objectives - Recap</span></h1>
218 <div class="simplebox">
219 <img src="vruser.jpg" class="slidepic"
220 alt="VR headset user">
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>
226 <p class="ensurepicinbox"></p>
230 <article id="makeyourown" data-title="Make It Your Own">
231 <h1><span>Make It Your Own</span></h1>
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>
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">
245 <article id="end" data-title="The End">
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">