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">
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>
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: Using OpenStreetMap Data in 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>,
44 "KaiRo" <kairo@kairo.at>
45 <br><small>Mozilla Tech Speaker</small>
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">
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>
69 <article id="webvr" data-title="WebVR & WebXR">
70 <h1><span>WebVR & WebXR</span></h1>
72 <div class="simplebox">
73 <img src="vruser.jpg" class="slidepic"
74 alt="VR headset user">
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
82 <li>Windows: Firefox release, Mac: Nightly/Beta, Linux: in development</li>
84 <p class="ensurepicinbox"></p>
88 <article id="vrmap" data-title="VR Map">
89 <h1><span>VR Map</span></h1>
91 <div class="simplebox">
92 <img src="vrmap-small.png" class="slidepic"
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>
101 <p class="ensurepicinbox"></p>
105 <article id="code-basics" data-title="Code Basics">
106 <h1><span>Code Basics</span></h1>
108 <div class="simplebox">
109 <img src="vrusermoz.jpg" class="slidepic"
110 alt="VR Headset user with Mozilla logos">
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>
120 <p class="ensurepicinbox"></p>
124 <article id="aframe" data-title="A-Frame">
125 <h1><span>A-Frame - XR Made Simple</span></h1>
127 <div class="simplebox">
128 <img src="aframe-sticker.png" class="slidepic"
129 alt="A-Frame - aframe-io">
132 <<mark>a-scene</mark>>
133 <a-sphere <small>position="0 1.25 -1" radius="1.25" color="#EF2D5E"</small>></a-sphere>
134 <<mark>a-cube</mark> <small>position="-1 0.5 1" rotation="0 0 0" …</small>>
135 <<mark>a-animation</mark> <small>attribute="rotation" … to="0 360 0"</small>></a-animation>
137 <a-cylinder <small>position="1 0.75 1" …</small>></a-cylinder>
138 <a-plane <small>…</small>></a-plane>
139 <a-sky <small>color="#ECECEC"</small>></a-sky>
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>
148 <article id="code-details" data-title="Code Details">
149 <h1><span>Code Details</span></h1>
151 <div class="simplebox">
152 <img src="vrusermoz.jpg" class="slidepic"
153 alt="VR Headset user with Mozilla logos">
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>
163 <p class="ensurepicinbox"></p>
167 <article id="vrmapdemo" data-title="VR Map Demo">
168 <h1><span><a href="https://vrmap.kairo.at/">vrmap.kairo.at</a></span></h1>
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>
175 <article id="end" data-title="The End">
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">