-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
183 lines (166 loc) · 12.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flight School</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="icon" href="./logo/logo-black-only-plane.ico" type="image/x-icon">
<link rel="shortcut icon" href="./logo/logo-black-only-plane.ico" type="image/x-icon">
</head>
<body>
<div id="start-screen" class="start-screen">
<div class="header">
<div class="headerContent">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev/svgjs" version="1.1" width="1000" height="98" viewBox="0 0 1000 98"><g transform="matrix(1,0,0,1,-0.6060606060606233,-0.5909785518919506)"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 396 39" data-background-color="#ffffff" preserveAspectRatio="xMidYMid meet" height="98" width="1000"><defs fill="#000000"/><g id="tight-bounds" transform="matrix(1,0,0,1,0.2400000000000091,0.23518540998068715)"><svg viewBox="0 0 395.52 38.52962733351726" height="38.52962733351726" width="395.52"><g><svg viewBox="0 0 534.4987010751308 52.068253849802375" height="38.52962733351726" width="395.52"><g><rect width="3.3976619874190677" height="37.86439588932806" x="404.4144031084269" y="7.101928980237158" fill="#ff0033" opacity="1" stroke-width="0" stroke="transparent" fill-opacity="1" class="rect-o-0" data-fill-palette-color="primary" rx="1%" id="o-0" data-palette-color="#ff0033"/></g><g transform="matrix(1,0,0,1,0,7.196119019762847)"><svg viewBox="0 0 395.52 37.67601581027668" height="37.67601581027668" width="395.52"><g><svg viewBox="0 0 395.52 37.67601581027668" height="37.67601581027668" width="395.52"><g><svg viewBox="0 0 395.52 37.67601581027668" height="37.67601581027668" width="395.52"><g transform="matrix(1,0,0,1,0,0)"><svg width="395.52" viewBox="3.799999952316284 -35.70000076293945 379.9800109863281 36.150001525878906" height="37.67601581027668" data-palette-color="#ff0033"><g class="undefined-text-0" data-fill-palette-color="primary" id="text-0"><path d="M10.15 0L3.8 0 3.8-35.25 26.9-35.25 26.9-30.1 10.15-30.1 10.15-20.5 25.9-20.5 25.9-15.35 10.15-15.35 10.15 0ZM55 0L32.1 0 32.1-35.25 38.55-35.25 38.55-5.3 55-5.3 55 0ZM66.3 0L59.84 0 59.84-35.25 66.3-35.25 66.3 0ZM89.94-19.05L103.29-19.05 103.29-2.15Q100.89-0.95 97.47-0.25 94.04 0.45 90.49 0.45L90.49 0.45Q85.04 0.45 81.04-1.73 77.04-3.9 74.92-7.98 72.79-12.05 72.79-17.65L72.79-17.65Q72.79-23.2 74.92-27.28 77.04-31.35 80.97-33.52 84.89-35.7 90.19-35.7L90.19-35.7Q93.89-35.7 97.14-34.63 100.39-33.55 102.54-31.55L102.54-31.55 100.39-26.9Q97.94-28.8 95.57-29.63 93.19-30.45 90.34-30.45L90.34-30.45Q84.89-30.45 82.12-27.23 79.34-24 79.34-17.65L79.34-17.65Q79.34-4.65 90.74-4.65L90.74-4.65Q94.14-4.65 97.54-5.6L97.54-5.6 97.54-14.45 89.94-14.45 89.94-19.05ZM134.94-20.5L134.94-35.25 141.24-35.25 141.24 0 134.94 0 134.94-15.3 116.89-15.3 116.89 0 110.54 0 110.54-35.25 116.89-35.25 116.89-20.5 134.94-20.5ZM163.59 0L157.14 0 157.14-29.95 145.64-29.95 145.64-35.25 175.09-35.25 175.09-29.95 163.59-29.95 163.59 0Z" fill="#ff0033" data-fill-palette-color="primary"/><path d="M190.84 0.45Q186.79 0.45 183.24-0.65 179.69-1.75 177.24-3.75L177.24-3.75 179.39-8.45Q181.94-6.5 184.77-5.6 187.59-4.7 190.89-4.7L190.89-4.7Q194.54-4.7 196.52-5.98 198.49-7.25 198.49-9.55L198.49-9.55Q198.49-11.55 196.67-12.6 194.84-13.65 190.59-14.6L190.59-14.6Q186.19-15.55 183.44-16.8 180.69-18.05 179.29-20 177.89-21.95 177.89-24.95L177.89-24.95Q177.89-28.05 179.59-30.5 181.29-32.95 184.39-34.33 187.49-35.7 191.54-35.7L191.54-35.7Q195.24-35.7 198.59-34.58 201.94-33.45 204.09-31.5L204.09-31.5 201.94-26.8Q197.24-30.55 191.54-30.55L191.54-30.55Q188.14-30.55 186.17-29.18 184.19-27.8 184.19-25.35L184.19-25.35Q184.19-23.3 185.94-22.2 187.69-21.1 191.89-20.15L191.89-20.15Q196.34-19.15 199.12-17.93 201.89-16.7 203.37-14.8 204.84-12.9 204.84-10L204.84-10Q204.84-6.85 203.17-4.48 201.49-2.1 198.32-0.83 195.14 0.45 190.84 0.45L190.84 0.45ZM226.79 0.45Q221.59 0.45 217.71-1.78 213.84-4 211.76-8.1 209.69-12.2 209.69-17.65L209.69-17.65Q209.69-23.1 211.76-27.18 213.84-31.25 217.71-33.48 221.59-35.7 226.79-35.7L226.79-35.7Q230.34-35.7 233.49-34.6 236.64-33.5 238.79-31.5L238.79-31.5 236.64-26.8Q234.24-28.7 231.89-29.58 229.54-30.45 226.89-30.45L226.89-30.45Q221.79-30.45 219.01-27.15 216.24-23.85 216.24-17.65L216.24-17.65Q216.24-11.4 219.01-8.1 221.79-4.8 226.89-4.8L226.89-4.8Q229.54-4.8 231.89-5.68 234.24-6.55 236.64-8.45L236.64-8.45 238.79-3.75Q236.64-1.75 233.49-0.65 230.34 0.45 226.79 0.45L226.79 0.45ZM269.09-20.5L269.09-35.25 275.39-35.25 275.39 0 269.09 0 269.09-15.3 251.04-15.3 251.04 0 244.68 0 244.68-35.25 251.04-35.25 251.04-20.5 269.09-20.5ZM298.68 0.45Q293.53 0.45 289.76-1.75 285.98-3.95 283.93-8.05 281.88-12.15 281.88-17.65L281.88-17.65Q281.88-23.15 283.91-27.23 285.93-31.3 289.73-33.5 293.53-35.7 298.68-35.7L298.68-35.7Q303.83-35.7 307.61-33.5 311.38-31.3 313.41-27.23 315.43-23.15 315.43-17.65L315.43-17.65Q315.43-12.15 313.38-8.05 311.33-3.95 307.56-1.75 303.78 0.45 298.68 0.45L298.68 0.45ZM298.68-4.7Q303.53-4.7 306.26-8.05 308.98-11.4 308.98-17.65L308.98-17.65Q308.98-23.9 306.26-27.23 303.53-30.55 298.68-30.55L298.68-30.55Q293.78-30.55 291.06-27.23 288.33-23.9 288.33-17.65L288.33-17.65Q288.33-11.4 291.06-8.05 293.78-4.7 298.68-4.7L298.68-4.7ZM337.63 0.45Q332.48 0.45 328.71-1.75 324.93-3.95 322.88-8.05 320.83-12.15 320.83-17.65L320.83-17.65Q320.83-23.15 322.86-27.23 324.88-31.3 328.68-33.5 332.48-35.7 337.63-35.7L337.63-35.7Q342.78-35.7 346.56-33.5 350.33-31.3 352.36-27.23 354.38-23.15 354.38-17.65L354.38-17.65Q354.38-12.15 352.33-8.05 350.28-3.95 346.51-1.75 342.73 0.45 337.63 0.45L337.63 0.45ZM337.63-4.7Q342.48-4.7 345.21-8.05 347.93-11.4 347.93-17.65L347.93-17.65Q347.93-23.9 345.21-27.23 342.48-30.55 337.63-30.55L337.63-30.55Q332.73-30.55 330.01-27.23 327.28-23.9 327.28-17.65L327.28-17.65Q327.28-11.4 330.01-8.05 332.73-4.7 337.63-4.7L337.63-4.7ZM383.78 0L360.88 0 360.88-35.25 367.33-35.25 367.33-5.3 383.78-5.3 383.78 0Z" fill="#000000" data-fill-palette-color="secondary"/></g></svg></g></svg></g></svg></g></svg></g><g transform="matrix(1,0,0,1,416.7064682042728,0)"><svg viewBox="0 0 117.79223287085807 52.068253849802375" height="52.068253849802375" width="117.79223287085807"><g><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0" y="0" viewBox="0.0012862086296081543 0.0000711679458618164 99.99877166748047 44.20292663574219" enable-background="new 0 0 100 44.203" xml:space="preserve" width="117.79223287085807" height="52.068253849802375" class="icon-icon-0" data-fill-palette-color="accent" id="icon-0"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.042 14.134l7.742-3.234 35.167 0.493 23.344-9.006 0 0c1.576-0.645 2.959-1.13 4.229-1.487 1.261-0.356 1.854-0.568 3.322-0.674 1.441-0.134 3.647-0.376 5.328-0.098 1.643 0.223 3.628 0.744 4.555 1.673 0.928 0.963 1.823 2.508 0.85 3.967-1.051 1.389-0.926 1.892-6.951 4.448-6.093 2.57-15.591 6.072-29.054 10.773l0 0L50.875 39.694l-12 4.509 7.552-17.239-18.017 5.481 0 0c-6.501-1.813-11.926-3.609-16.566-5.386-4.659-1.815-9.3-3.803-11.047-5.291-1.708-1.484-0.295-2.971 0.783-3.522 1.062-0.557 1.327-0.666 5.52 0.205 4.218 0.838 10.598 2.472 19.468 4.893l0 0 11.714-3.919 0 0C30.537 17.667 22.793 15.902 15.042 14.134L15.042 14.134z" fill="#000000" data-fill-palette-color="accent"/></svg></g></svg></g></svg></g></svg><rect width="395.52" height="38.52962733351726" fill="none" stroke="none" visibility="hidden"/></g></svg></g></svg> <p class="shadow">
<span>Computer Graphics Project</span>
by Johannes Brandenburger, Lukas Braun und Henry Schuler
</p>
</div>
</div>
<div id="features" class="section">
<div class="content">
<h2>Features</h2>
<ul>
<li>3D-Modeling of a flight school</li>
<li>Flight Simulator Game</li>
<li>Animations and interactions in the scene triggered by mouse click</li>
<li>Realistic lighting and shadows</li>
<li>Walking controls (WASD) with collision detection</li>
<li>Camera controls (mouse)</li>
<li>Airplane controls (mouse)</li>
<li>Keyboard shortcuts for fast controls over lights, shadows and other features</li>
<li>Information on interaction options when near objects</li>
</ul>
<h2>Keyboard Shortcuts in Flight School Scene</h2>
<table class="shortcut-table">
<thead>
<tr>
<th>Key</th>
<th>Function</th>
</tr>
</thead>
<tbody>
<tr>
<td>
WASD
</td>
<td>Walking Controls</td>
</tr>
<tr>
<td>L</td>
<td>Switch All Lights On/Off</td>
</tr>
<tr>
<td>C</td>
<td>Toggle Chair Shadows (Deactivated by Default for more Performance)</td>
</tr>
<tr>
<td>T</td>
<td>Toggle Table Shadows (Activated by Default)</td>
</tr>
<tr>
<td>F</td>
<td>Start Flight Simulator</td>
</tr>
<tr>
<td>J</td>
<td>Toggle FPS Display Visibility</td>
</tr>
<tr>
<td>H</td>
<td>Show this Help</td>
</tr>
<tr>
<td>U</td>
<td>Toggle Collision Detection</td>
</tr>
</tbody>
</table>
<h2>Keyboard Shortcuts in Flight Simulator</h2>
<table class="shortcut-table">
<thead>
<tr>
<th>Key</th>
<th>Function</th>
</tr>
</thead>
<tbody>
<tr>
<td>P</td>
<td>Pause</td>
</tr>
<tr>
<td>I</td>
<td>Invert controls</td>
</tr>
<tr>
<td>F</td>
<td>Exit Flight Simulator and return to Flight School Scene</td>
</tr>
<tr>
<td>J</td>
<td>Toggle FPS Display Visibility</td>
</tr>
</tbody>
</table>
<h2>Interactions in Flight School Scene</h2>
<ul>
<li>Click on the chair to put it on the table (and back)</li>
<li>Click on the computer to start the Flight Simulator</li>
<li>Click on the light switch to switch the lights on or off</li>
<li>Click on the closet to open or close it</li>
<li>Move the blackboard with the mouse to adjust its height</li>
</ul>
</div>
</div>
<div id="documentation" class="section">
<h2>Documentation</h2>
<h3>Flight School</h3>
<div class="itemCollection">
<a class="item" href="/jsdoc/root/">
<h3>JSDoc</h3>
<img src="textures/documents.png" alt="DOC" srcset="" class="inverted">
</a>
<a class="item" href="/function-call-graph/root.svg">
<h3>Function call graph</h3>
<img src="/function-call-graph/root.svg" alt="" srcset="">
</a>
</div>
<h3>Flight Simulator</h3>
<div class="itemCollection">
<a class="item" href="/jsdoc/flight-simulator/">
<h3>JSDoc</h3>
<img src="textures/documents.png" alt="DOC" srcset="" class="inverted">
</a>
<a class="item" href="/function-call-graph/flight-simulator.svg">
<h3>Function call graph</h3>
<img src="/function-call-graph/flight-simulator.svg" alt="" srcset="">
</a>
</div>
</div>
<button class="start-button" id="start-button" disabled>
Loading content. This may take a while...
<br/>
Press "F" to skip loading the scene and start the flight simulator.
<div id="loading-icon" class="loading-icon"></div>
</button>
<footer>
Computer Graphics Project by Johannes Brandenburger, Lukas Braun und Henry Schuler. © 2022
</footer>
</div>
<script src="threejs/three.js"></script>
<script src="threejs/extra-utils/loaders/GLTFLoader.js"></script>
<script src='threejs/extra-utils/threex.domevents.js'></script>
<script src="js/helpers.js"></script>
<script src="js/walk.js"></script>
<script src="js/animate.js"></script>
<script src="threejs/extra-utils/libs/stats.min.js"></script>
<script src="js/place-objects.js"></script>
<script src="js/interactions.js"></script>
<script src="js/place-lights.js"></script>
<script src="js/init.js"></script>
<script src="js/main.js"></script>
</body>
</html>