forked from Cecropia/thehallaframe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsplash.html
313 lines (238 loc) · 12.6 KB
/
splash.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
311
312
313
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Mark Hall's Desktop App</title>
</meta>
<link rel="stylesheet" type="text/css" href="my.css">
<script src="js/aframe.0.7.0.min.js"></script>
<script src="js/aframe-extras.min.js"></script>
<script src="js/lzma.js"></script>
<script src="js/ctm.js"></script>
<script src="js/CTMLoader.js"></script>
<script src="js/aframe-teleport-controls.min.js"></script>
<script src="js/spheres_anim.js"></script>
<script src="js/anim_1.js"></script>
<script src="js/anim_2.js"></script>
<script src="js/mocap.js"></script>
<script src="js/envMapMaterial.js"></script>
<script src="js/ctm_component.js"></script>
<script src="js/mobile_component.js"></script>
</head>
<body>
<div id="splash_wraper">
<div id="header_wrapper">
<div id="header">
<div class="inner">
<ul class="nav">
<li><a href="splash.html">Home</a></li>
<li><a href="splash.html">Contact</a></li>
<li><a href="https://experiments.withgoogle.com/webvr">WebVR</a></li>
<li style="float:right"><a href="splash.html">About</a></li>
</ul>
<div class="startButton">
<button id="enterTheMatrix" onclick="start()">Enter 360</button>
<div class="instructions">
<div><strong>Desktop</strong>: Keyboard (WASD/arrows) and mouse.</div>
<div><strong>VR headset</strong>: Hand controllers and teleport with trigger.</div>
<div><strong>Mobile</strong>: Gaze cursor and teleportation.</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer">
<ul class="nav">
<li><a href="splash.html">Home</a></li>
<li><a href="splash.html">About</a></li>
<li><a href="splash.html">Contact</a></li>
<li><a href="https://experiments.withgoogle.com/webvr">WebVR</a></li>
</ul>
</div>
</div>
<a-scene id="traumaRoom-ascene" style="display:none">
<a-entity mobile></a-entity>
<a-entity light="type: directional; color: #FFF; intensity: 0.5" position="2 20 0"></a-entity>
<a-entity light="type: ambient; color: #FFF"></a-entity>
<a-assets>
<a-mixin id="checkpoint"></a-mixin>
<a-mixin id="checkpoint-hovered" color="#6CEEB5"></a-mixin>
<img id="sky_sphere-texture" src="textures/black_sky_sphere.jpg">
<a-sound src="audio/84529__cmusounddesign__02-museum.ogg"
autoplay="true"
loop="true"
position="1 1 0"></a-sound>
<a-sound src="audio/219462__cediez__musee-victoria-londres-grand-escalier.ogg"
autoplay="true"
loop="true"
position="1 1 10"></a-sound>
<!-- floor -->
<a-asset-item id="floor-obj" src="models/floor.obj"></a-asset-item>
<img id="floor-texture" src="textures/floor.jpg">
<img id="floor_normal-texture" src="textures/floor_normal.jpg">
<!-- - floor -->
<!-- hall -->
<a-asset-item id="hall-obj" src="models/hall.obj"></a-asset-item>
<img id="hall-texture" src="textures/hall.jpg">
<!--<img id="hall_normal-texture" src="textures/hall_normal.jpg">-->
<!-- - hall -->
<!-- hall low floor -->
<!-- this piece is only meant for teleportation -->
<a-asset-item id="hall_low_floor-obj" src="models/hall_low_floor.obj"></a-asset-item>
<!-- - hall low floor-->
<script id="link" type="text/html">
<a-entity class="link"
geometry="primitive: plane; height: 1; width: 1"
material="shader: flat; src: ${thumb}"
sound="on: click; src: #click-sound"></a-entity>
</script>
<a-asset-item id="catheter" src="models/SuctionCatheter_straight.obj"></a-asset-item>
<!-- Trauma Room -->
<a-asset-item id="TraumaRoom-obj" src="models/TraumaRoom.obj"></a-asset-item>
<a-asset-item id="TraumaRoom-mtl" src="models/TraumaRoom.mtl"></a-asset-item>
<!-- - Trauma Room -->
<a-asset-item id="wolf-gtlf" src="models/wolf.gltf"></a-asset-item>
</a-assets>
<a-sky color="#EEEEFF" material="src: #sky_sphere-texture"></a-sky>
<a-gltf-model src="#wolf"></a-gltf-model>
<a-obj-model src="#TraumaRoom-obj" mtl="#TraumaRoom-mtl"
scale="0.01 0.01 0.01"></a-entity>
<!--<a-entity obj-model="obj: #floor-obj;" material="src: #floor-texture; normalMap: #floor_normal-texture; metalness: 0.6" id="floor"></a-entity>
<a-entity obj-model="obj: #hall-obj;" material="src: #hall-texture" id="hall"></a-entity>
<a-entity obj-model="obj: #hall_low_floor-obj;" material="opacity: 0.0" id="hall_low_floor"></a-entity>
<a-entity obj-model="obj: #acropolis-obj;" material="src: #acropolis-texture"></a-entity>
<a-entity obj-model="obj: #castle_lake-obj;" material="src: #castle_lake-texture"></a-entity>
<a-entity obj-model="obj: #good_samaritan-obj;" material="src: #good_samaritan-texture"></a-entity>
<a-entity obj-model="obj: #moonlight-obj;" material="src: #moonlight-texture"></a-entity>
<a-entity obj-model="obj: #podiums-obj;" material="src: #podiums-texture"></a-entity>
<a-entity obj-model="obj: #lamps-obj;" material="src: #lamps-texture; side: double;"></a-entity>-->
<a-entity obj-model="obj: #catheter"></a-entity>
<a-entity teleport-controls="button: trigger; collision-entities: #floor #hall_low_floor" hand-controls="left"></a-entity>
<a-entity teleport-controls="button: trigger; collision-entities: #floor #hall_low_floor" hand-controls="right"></a-entity>
</a-scene>
</body>
</html>
<script>
function start() {
document.getElementById("splash_wraper").style.display = "none";
document.getElementById("traumaRoom-ascene").style.display = "block";
}
</script>
<!-- <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Mark Hall's Desktop App based on Cecropia's The Hall VR in A-Frame</title>
<meta property="og:title" content="BioFlight VR Fellowship Splash Page" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://cecropia.github.io/thehallaframe/" />
<meta property="og:image" content="https://cecropia.github.io/thehallaframe/screenshots/thehall1.jpg" />
<meta property="og:description" content="WebVR demo that displays information on the BioFlightVR Fellowship " />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="BioFlight VR Fellowship Splash Page">
<meta name="twitter:description" content="WebVR demo that displays art ">
<meta name="twitter:image" content="https://cecropia.github.io/thehallaframe/screenshots/thehall1.jpg">
<link rel="icon" href="favicon.png">
<link href="https://fonts.googleapis.com/css?family=Poiret+One" rel="stylesheet">
<meta name="description" content="BioFlight VR Fellowship Splash Page">
<link rel="stylesheet" type="text/css" href="style.css">
<script src="js/aframe.0.7.0.min.js"></script>
<script src="js/aframe-extras.min.js"></script>
<script src="js/lzma.js"></script>
<script src="js/ctm.js"></script>
<script src="js/CTMLoader.js"></script>
<script src="js/aframe-teleport-controls.min.js"></script>
<script src="js/spheres_anim.js"></script>
<script src="js/anim_1.js"></script>
<script src="js/anim_2.js"></script>
<script src="js/mocap.js"></script>
<script src="js/envMapMaterial.js"></script>
<script src="js/ctm_component.js"></script>
<script src="js/mobile_component.js"></script>
</head>
<body>
<div id="container" class="container">
<div class="info">
<div class="company"><a href="http://www.immersus.co/" target="_blank">BioFlightVR.com</a></div>
<div class="title">Trauma Room</div>
<div class="logo"><a href="http://www.immersus.co/" target="_blank"><img src="img/BioFlightVR_logo.png"></a></div>
<a class="button" id="start_experience" href="#">start experience</a>
<div class="instructions">
<div><strong>VR headset</strong>: Hand controllers and teleport with trigger.</div>
<div><strong>Desktop</strong>: Keyboard (WASD/arrows) and mouse.</div>
<div><strong>Mobile</strong>: Gaze cursor and teleportation.</div>
</div>
</div>
</div>
<!--<a-scene stats>
<a-scene>
<a-entity mobile></a-entity>
<a-entity light="type: directional; color: #FFF; intensity: 0.5" position="2 20 0"></a-entity>
<a-entity light="type: ambient; color: #FFF"></a-entity>
<a-assets>
<a-mixin id="checkpoint"></a-mixin>
<a-mixin id="checkpoint-hovered" color="#6CEEB5"></a-mixin>
<img id="sky_sphere-texture" src="textures/black_sky_sphere.jpg">
<a-sound src="audio/84529__cmusounddesign__02-museum.ogg"
autoplay="true"
loop="true"
position="1 1 0"></a-sound>
<a-sound src="audio/219462__cediez__musee-victoria-londres-grand-escalier.ogg"
autoplay="true"
loop="true"
position="1 1 10"></a-sound>
<!-- floor
<a-asset-item id="floor-obj" src="models/floor.obj"></a-asset-item>
<img id="floor-texture" src="textures/floor.jpg">
<img id="floor_normal-texture" src="textures/floor_normal.jpg">
<!-- - floor
<!-- hall
<a-asset-item id="hall-obj" src="models/hall.obj"></a-asset-item>
<img id="hall-texture" src="textures/hall.jpg">
<!--<img id="hall_normal-texture" src="textures/hall_normal.jpg">-->
<!-- - hall
<!-- hall low floor
<!-- this piece is only meant for teleportation
<a-asset-item id="hall_low_floor-obj" src="models/hall_low_floor.obj"></a-asset-item>
<!-- - hall low floor
<script id="link" type="text/html">
<a-entity class="link"
geometry="primitive: plane; height: 1; width: 1"
material="shader: flat; src: ${thumb}"
sound="on: click; src: #click-sound"></a-entity>
</script>
<a-asset-item id="catheter" src="models/SuctionCatheter_straight.obj"></a-asset-item>
<!-- Trauma Room
<a-asset-item id="TraumaRoom-obj" src="models/TraumaRoom.obj"></a-asset-item>
<a-asset-item id="TraumaRoom-mtl" src="models/TraumaRoom.mtl"></a-asset-item>
<!-- - Trauma Room
<a-asset-item id="wolf-gtlf" src="models/wolf.gltf"></a-asset-item>
</a-assets>
<a-sky color="#EEEEFF" material="src: #sky_sphere-texture"></a-sky>
<a-gltf-model src="#wolf"></a-gltf-model>
<a-obj-model src="#TraumaRoom-obj" mtl="#TraumaRoom-mtl"
scale="0.01 0.01 0.01"></a-entity>
<!--<a-entity obj-model="obj: #floor-obj;" material="src: #floor-texture; normalMap: #floor_normal-texture; metalness: 0.6" id="floor"></a-entity>
<a-entity obj-model="obj: #hall-obj;" material="src: #hall-texture" id="hall"></a-entity>
<a-entity obj-model="obj: #hall_low_floor-obj;" material="opacity: 0.0" id="hall_low_floor"></a-entity>
<a-entity obj-model="obj: #acropolis-obj;" material="src: #acropolis-texture"></a-entity>
<a-entity obj-model="obj: #castle_lake-obj;" material="src: #castle_lake-texture"></a-entity>
<a-entity obj-model="obj: #good_samaritan-obj;" material="src: #good_samaritan-texture"></a-entity>
<a-entity obj-model="obj: #moonlight-obj;" material="src: #moonlight-texture"></a-entity>
<a-entity obj-model="obj: #podiums-obj;" material="src: #podiums-texture"></a-entity>
<a-entity obj-model="obj: #lamps-obj;" material="src: #lamps-texture; side: double;"></a-entity>
<a-entity obj-model="obj: #catheter"></a-entity>
<a-entity teleport-controls="button: trigger; collision-entities: #floor #hall_low_floor" hand-controls="left"></a-entity>
<a-entity teleport-controls="button: trigger; collision-entities: #floor #hall_low_floor" hand-controls="right"></a-entity>
</a-scene>
<script src="main.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-92113119-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>-->