-
Notifications
You must be signed in to change notification settings - Fork 67
/
index.html
310 lines (278 loc) · 13.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<!doctype html>
<html>
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-77033033-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-77033033-2');
</script>
<title>WebXR Viewer</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
/*
colors
*/
/*https://ffp4g1ylyit3jdyti1hqcvtb-wpengine.netdna-ssl.com/wp-content/themes/frontierline/fonts/ZillaSlab-Regular.woff2*/
@font-face { font-family: 'Zilla Slab'; font-weight: normal; font-style: normal; src: url("https://ffp4g1ylyit3jdyti1hqcvtb-wpengine.netdna-ssl.com/wp-content/themes/frontierline/fonts/ZillaSlab-Regular.woff2") format("woff2"), url("https://ffp4g1ylyit3jdyti1hqcvtb-wpengine.netdna-ssl.com/wp-content/themes/frontierline/fonts/ZillaSlab-Regular.woff") format("woff"); }
@font-face { font-family: 'Zilla Slab'; font-weight: bold; font-style: normal; src: url("https://ffp4g1ylyit3jdyti1hqcvtb-wpengine.netdna-ssl.com/wp-content/themes/frontierline/fonts/ZillaSlab-Bold.woff2") format("woff2"), url("https://ffp4g1ylyit3jdyti1hqcvtb-wpengine.netdna-ssl.com/wp-content/themes/frontierline/fonts/ZillaSlab-Bold.woff") format("woff"); }
/*@font-face { font-family: 'Zilla Slab'; font-weight: normal; font-style: italic; src: url("fonts/ZillaSlab-RegularItalic.woff2") format("woff2"), url("fonts/ZillaSlab-RegularItalic.woff") format("woff"); }*/
/*@font-face { font-family: 'Zilla Slab'; font-weight: bold; font-style: italic; src: url("fonts/ZillaSlab-BoldItalic.woff2") format("woff2"), url("fonts/ZillaSlab-BoldItalic.woff") format("woff"); }*/
/*@font-face { font-family: 'Open Sans'; font-weight: normal; font-style: normal; src: url("fonts/opensans-regular.woff2") format("woff2"), url("fonts/opensans-regular.woff") format("woff"); }*/
/*@font-face { font-family: 'Open Sans'; font-weight: bold; font-style: normal; src: url("fonts/opensans-bold.woff2") format("woff2"), url("fonts/opensans-bold.woff") format("woff"); }*/
body, html {
background-color: #ffffff;
color: #221E1D;
font-family: "Zilla Slab", "Open Sans", X-LocaleSpecific, sans-serif;
/*font-size: 12px;*/
line-height: 1.3em;
}
h1, h2, h3 {
background-color: #221E1D;
color: white;
padding: 0.25rem 0.25rem 0.5rem 0.4rem;
font-weight: normal;
margin: 2rem 0 0 0;
}
a {
color: #00a7e0;
}
li {
border: 1px solid #ccc;
background-color: #eee;
}
/* layout */
body, html {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
padding-bottom: 200px;
}
section {
margin: 0.5rem;
}
section > * {
margin-left: 0.5rem;
margin-right: 0.5rem;
}
ul li img {
width: 100%;
height: auto;
margin:0;
padding:0;
}
.intro {
max-width: 40em;
padding: 0.5rem 0;
}
.source {
font-size: 0.8rem;
}
a {
text-decoration: none;
}
li a {
font-size: 1.3rem;
}
li p {
margin-top: 0.5rem;
}
ul {
list-style: none;
margin:0;
padding:0;
width: 100%;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
}
li {
display: flex;
flex-direction: column;
padding: 0.5em;
margin: 0.5rem;
justify-content: flex-start;
}
li a.img {
flex: 1;
justify-self: flex-end;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
</style>
</head>
<body>
<section>
<h1>WebXR Viewer</h1>
<p class="intro">
Help Mozilla Research by taking part in WebXR viewer, an augmented reality and virtual reality application that lets you navigate to XR experiences just like websites.
</p>
<p class="intro">
Below you will find examples of WebXR experiences. If you are a developer, click the source code links to see how to use the <a href="https://github.com/mozilla/webxr-polyfill">WebXR polyfill</a> to create your own AR or VR experiences.
</p>
</section>
<section>
<h2>Samples</h2>
<ul>
<li>
<a href="http://apainter.webxrexperiments.com/">A-Painter</a>
<a class='source' href="wxrv://apainter.webxrexperiments.com/">wxrv</a>
<p>Draw in 3D</p>
<a class="img" href="http://apainter.webxrexperiments.com/">
<img src="./screenshots/apainter.png" width="300" height="200"/>
</a>
</li>
<li>
<a href="http://xr-store.webxrexperiments.com/">XR-Store</a>
<a class='source' href="wxrv://xr-store.webxrexperiments.com/">wxrv</a>
<p>Responsive XR app across various AR and VR displays</p>
<a class="img" href="http://xr-store.webxrexperiments.com/">
<img src="./screenshots/xrstore.jpg" width="300" height="200"/>
</a>
</li>
<li>
<a href="http://apainter.webxrexperiments.com/?url=https://ucarecdn.com/0b45b93b-e651-42d8-ba49-b2df907575f3/">A-painter fox</a>
<a class='source' href="wxrv://apainter.webxrexperiments.com/?url=https://ucarecdn.com/0b45b93b-e651-42d8-ba49-b2df907575f3/">wxrv</a>
<p>A-Painter Fox</p>
<a class="img" href="http://apainter.webxrexperiments.com/?url=https://ucarecdn.com/0b45b93b-e651-42d8-ba49-b2df907575f3/">
<img src="./screenshots/apainter.png" width="300" height="200"/>
</a>
</li>
<li>
<a href="http://apainter.webxrexperiments.com/?url=https://ucarecdn.com/962b242b-87a9-422c-b730-febdc470f203/">A-painter Balrog</a>
<a class='source' href="wxrv://apainter.webxrexperiments.com/?url=https://ucarecdn.com/962b242b-87a9-422c-b730-febdc470f203/">wxrv</a>
<p>A-Painter Balrog</p>
<a class="img" href="http://apainter.webxrexperiments.com/?url=https://ucarecdn.com/962b242b-87a9-422c-b730-febdc470f203/">
<img src="./screenshots/apainter.png" width="300" height="200"/>
</a>
</li>
</ul>
<h2>Simple Examples</h2>
<ul>
<li>
<a href="examples/ar_simplest/">Simplest AR</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/ar_simplest/index.html">source</a>
<p>Use Three.js to position the Utah Teapot in an augmented reality scene.</p>
<a class="img" href="examples/ar_simplest/">
<img src="examples/ar_simplest/screenshot.jpeg" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/vr_simplest/">Simplest VR</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/vr_simplest/index.html">source</a>
<p>Use Three.js to position the Utah Teapot in an virtual reality scene.</p>
<a class="img" href="examples/vr_simplest">
<img src="#" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/ar_anchors/">Anchors</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/ar_anchors/index.html">source</a>
<p>Position boxes in space and receive updated positions using ARKit anchors.</p>
<a class="img" href="examples/ar_anchors/">
<img src="examples/ar_anchors/screenshot.jpeg" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/hit_test/">Hit testing</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/hit_test/index.html">source</a>
<p>Find anchors by tapping to search for surfaces.</p>
<a class="img" href="examples/hit_test/">
<img src="examples/hit_test/screenshot.jpeg" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/peoples/">Peoples</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/peoples/index.html">source</a>
<p>Place animated people on surfaces.</p>
<a class="img" href="examples/peoples/">
<img src="examples/peoples/screenshot.jpeg" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/boombox/">Boom box</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/boombox/index.html">source</a>
<p>A shiny boom box in an environment map</p>
<a class="img" href="examples/boombox/">
<img src="examples/boombox/screenshot.jpeg" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/reticle/">Reticle</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/reticle/index.html">source</a>
<p>Place a reticle on surfaces.</p>
<a class="img" href="examples/reticle/">
<img src="examples/reticle/screenshot.jpeg" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/light/">Light</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/light/index.html">source</a>
<p>Place a reticle on surfaces with light estimation.</p>
<a class="img" href="examples/light/">
<img src="examples/light/screenshot.jpeg" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/simplecv/">Simple CV</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/simplecv/index.html">source</a>
<p>Show average world brightness to demonstrate simple computer vision.</p>
<a class="img" href="examples/simplecv/">
<img src="examples/simplecv/screenshot.png" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/opencv-face/">OpenCV Face</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/opencv-face/index.html">source</a>
<p>OpenCV face detector.</p>
<a class="img" href="examples/opencv-face/">
<img src="examples/opencv-face/screenshot.png" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/opencv-aruco/">OpenCV Markers</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/opencv-aruco/index.html">source</a>
<p>OpenCV Aruco marker detector.</p>
<a class="img" href="examples/opencv-aruco/">
<img src="examples/opencv-aruco/screenshot.png" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/image_detection/">Image Detection</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/image_detection/index.html">source</a>
<p>Image detector</p>
<a class="img" href="examples/image_detection/">
<img src="examples/image_detection/screenshot.jpg" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/face_tracking/">Face Tracking</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/face_tracking/index.html">source</a>
<p>Face tracker.</p>
<a class="img" href="examples/face_tracking/">
<img src="examples/face_tracking/screenshot.jpg" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/sensing/">World Sensing</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/sensing/index.html">source</a>
<p>Show world sensing data from WebXR.</p>
<a class="img" href="examples/sensing/">
<img src="examples/sensing/screenshot.jpg" width="300" height="200"/>
</a>
</li>
<li>
<a href="examples/persistence/">Map Sharing and Persistence</a>
<a class="source" href="https://github.com/mozilla/webxr-polyfill/blob/master/examples/persistence/index.html">source</a>
<p>Small test app to see if ARKit Map Sharing is working.</p>
<a class="img" href="examples/persistence/">
<img src="examples/persistence/screenshot.jpeg" width="300" height="200"/>
</a>
</li>
</ul>
</section>
</body>
</html>