-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·189 lines (164 loc) · 7.59 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="main.css">
<title>Fiori</title>
<meta name="description" content="Virtual Reality Showroom">
<script src="https://cdnjs.cloudflare.com/ajax/libs/aframe/0.6.0/aframe-master.min.js"></script>
<script src="https://cdn.rawgit.com/donmccurdy/aframe-extras/v3.8.6/dist/aframe-extras.min.js"></script>
</head>
<body>
<a-scene fog="type: linear; color: #000; far: 16; near: 7">
<!-- Splash Screen -->
<div class="splash">
<div class="splash__card">
<h1>FIORI</h1>
<p>Welcome, Feel free to look around.
<br>Use WASD keys</p>
<img class="splash__img" src="img/other/landing.jpg" alt="fiori" />
<button class="splash__button">Enter</button>
</div>
</div>
<!-- Load Assets -->
<a-assets>
<!-- global -->
<img id="floor" src="img/other/floor.png">
<img id="wall" src="img/other/wall-concrete.jpg">
<img id="foglio-poster" src="img/other/foglio-poster.png">
<!-- Room 1-->
<img id="room1-wall1" src="img/room1/side1.png">
<img id="room1-back-wall" src="img/room1/backwall.jpg" />
<img id="room1-wall2" src="img/room1/side2.png" />
<a-asset-item id="t-shirt-obj" src="img/room1/object/shirt_dolmanv1_b_39kpolys.obj"></a-asset-item>
<a-asset-item id="t-shirt-mtl" src="img/room1/object/shirt_dolmanv1_b_39kpolys.mtl"></a-asset-item>
<!-- Room 2-->
<img id="room2-mcqueengold" src="img/room2/mcqueengold.jpg" />
<img id="room2-mcqueenblk" src="img/room2/mcqueenblk.png" />
<img id="room2-mcqueenCabinet" src="img/room2/mcqueenCabinet.jpg" />
<!-- Room 3 -->
<img id="room3-page-accs" src="img/room3/Alien-Shoe-1320x1150.jpg" />
<img id="room3-page-accs2" src="img/room3/Armadillo-Boot-1320x1398.jpg" />
<img id="room3-page-accs3" src="img/room3/mcqaccessories.jpg" />
<img id="room3-page-accs4" src="img/room3/woodenboot.jpg" />
<img id="room3-page-accs5" src="img/room3/yashmak.jpg" />
<img id="room3-page-accs6" src="img/room3/mcqspine.jpg" />
<img id="room3-page-accs7" src="img/room3/mcqthorns.jpg" />
<img id="room3-page-accs8" src="img/room3/metalcast.jpg" />
<!-- Room 4 -->
<img id="room4-look1" src="img/room4/look1.jpg" />
<img id="room4-look2" src="img/room4/look2.jpg" />
<img id="room4-look3" src="img/room4/look3.jpg" />
<img id="room4-look4" src="img/room4/look4.jpg" />
<img id="room4-look5" src="img/room4/look5.jpg" />
<img id="room4-look6" src="img/room4/look6.jpg" />
<!-- Theater 6-->
<video id="theaterVideo" autoplay loop="true" webkit-playsinline playsinline src="img/theater/ savageBeauty.mp4"></video>
<a-asset-item id="couch-obj" src="img/theater/couch/model.obj"></a-asset-item>
<a-asset-item id="couch-mtl" src="img/theater/couch/materials.mtl"></a-asset-item>
</a-assets>
<!-- User / Camera -->
<a-entity
id="player"
camera="user-height: 1.8"
universal-controls
kinematic-body
listener
position: "0 9 0"
></a-entity>
<!-- Start Room (spawn) -->
<a-entity position="-1.5 1.5 19.5" rotation="0 0 0">
<!--left wall -->
<a-entity rotation= "0 90 0">
<a-image position="1 1.5 -4.4" src="#foglio-poster" height="5" width="5"></a-image>
</a-entity>
</a-entity>
<!-- Exampe Room 1 (Immediate right) -->
<a-entity position="10.5 1.5 19.5" rotation="0 -90 0">
<!--back wall-->
<a-image position="0 -.3 -5" src="#room1-back-wall" height="7" width="9"></a-image>
<!--right wall -->
<a-entity rotation= "0 -90 0">
<a-image position="1 1.5 -4.4" src="#room1-wall1" height="2.5" width="5"></a-image>
</a-entity>
<!--left wall -->
<a-entity rotation= "0 90 0">
<a-image position="1 1.5 -4.4" src="#room1-wall2" height="2.5" width="5"></a-image>
</a-entity>
<a-entity position="-.5 -10 -3" rotation="0 0 0">
<a-entity obj-model="obj: #t-shirt-obj; mtl: #t-shirt-mtl" scale=".08 .08 .08 " rotation="0 -10 0"></a-entity>
</a-entity>
</a-entity>
<!-- Example Room 2 -->
<!--(Left half of room) -->
<a-entity position="-10.5 1.5 7.5" rotation="0 90 0">
<!-- Back wall -->
<!--left wall -->
<a-entity rotation= "0 90 0">
<a-image position="0 2.5 -4.45" src="#room2-mcqueengold" height="7" width="9"></a-image>
</a-entity>
</a-entity>
<!--(Right half of room) -->
<a-entity position="-10.5 1.5 -4.45" rotation="0 90 0">
<!-- Back wall -->
<a-image position="-8 1.5 -4.45" src="#room2-mcqueenblk" height="8" width="9"></a-image>
<!--right wall -->
<a-entity rotation= "0 -90 0">
<a-image position="0 1.5 -4.45" src="#room2-mcqueenCabinet" height="8" width="9"></a-image>
</a-entity>
</a-entity>
<!-- Room 3 (First Right) -->
<a-entity position="7.5 1.5 7.5" rotation="0 -90 0">
<!-- Back wall -->
<a-image position="-2.2 1.3 -4.4" src="#room3-page-accs" height="4" width="4"></a-image>
<a-image position="2.2 1.3 -4.4" src="#room3-page-accs2" height="4" width="4"></a-image>
<!--right wall -->
<a-entity rotation= "0 -90 0">
<a-image position="0 1.3 -4.4" src="#room3-page-accs3" height="4" width="6"></a-image>
</a-entity>
<!--left wall -->
<a-entity rotation= "0 90 0">
<a-image position="1.5 1.3 -4.4" src="#room3-page-accs4" height="5" width="2.5"></a-image>
<a-image position="-1.5 2.5 -4.4" src="#room3-page-accs5" height="1" width="1"></a-image>
<a-image position="-3 2.5 -4.4" src="#room3-page-accs6" height="1" width="1"></a-image>
<a-image position="-1.5 .5 -4.4" src="#room3-page-accs7" height="1" width="1"></a-image>
<a-image position="-3 .5 -4.4" src="#room3-page-accs8" height="1" width="1"></a-image>
</a-entity>
</a-entity>
<!-- Example Room 4 (Second Right) -->
<a-entity position="7.5 1.5 -4.5" rotation="0 -90 0">
<!-- Back wall -->
<a-image position=".5 1.5 -4.4" src="#room4-look5" height="6" width="8"></a-image>
<!--right wall -->
<a-entity rotation= "0 -90 0">
<a-image position="-2 1.3 -4.4" src="#room4-look1" height="5" width="2.5"></a-image>
<a-image position="2 1.3 -4.4" src="#room4-look3" height="5" width="2.5"></a-image>
</a-entity>
<!--left wall -->
<a-entity rotation= "0 90 0">
<a-image position="-2 1.3 -4.4" src="#room4-look2" height="5" width="2.5"></a-image>
<a-image position="2 1.3 -4.4" src="#room4-look4" height="5" width="2.5"></a-image>
</a-entity>
</a-entity>
<!-- Example Room 6 (far back room ) -->
<a-entity position="-1.5 1.5 -22.5">
<!-- Back wall -->
<a-video src="#theaterVideo" width="7" height="5.25" position="0 2.45 -4.4"></a-video>
<!-- objects -->
<a-entity obj-model="obj: #couch-obj; mtl: #couch-mtl" position ="0 -1 1" rotation="0 0 0" scale="2 2 2"></a-entity>
<!-- ceiling -->
<a-plane position="0 6 0" rotation="90 0 0" height="9" width="9" color="black"></a-plane>
</a-entity>
<!-- Ground -->
<a-grid id="ground" static-body material="src: #floor; repeat: 15 15" rotation="0 -90 0"></a-grid>
<!-- Walls (used by map.js -->)
<a-entity id="walls"></a-entity>
<!-- Sky -->
<a-sky id="sky" color="#0000ff"></a-sky>
</a-scene>
<script src="js/map.js"></script>
<script src="js/video.js"></script>
</body>
</html>