-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
215 lines (174 loc) · 6.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>CS351 Project C - Walking the Dog with Drone</title>
<style>
body {
background: #191919;
margin: 0 0;
color: #f3f3f3;
}
#webgl {
margin: 0 auto;
text-align: center;
}
.mainLocal{
width: 80%;
margin: 0 auto;
margin-top: 50px;
color: #d4d4d3;
}
.framework{
border: 20px solid #947278;
background: #f0f0f0;
font-size: 16px;
padding: 20px;
max-width:900px;
width: 100%;
margin: 0px auto;
}
.textTitle{
overflow: hidden;
margin: 0 0 20px 0;
}
.textTitle, h3{
color: #f0f0f0;
}
.spacebetween{
display: flex;
justify-content: space-between;
}
.author{
text-align: right;
}
.width33{
width:33%;
}
.stdHeight{
height: 5em;
}
.canvas{
border: 5px solid #bdc3c7;
/*margin: 20px 20px; */
}
/* for dat.gui */
.save-row{
background-color: #191919!important;
}
.button{
background-color: #787878!important;
}/*
.dg.main{
margin-right: 0px!important;
}*/
/* .button {
color: #614E51;
font-size : 15px;
text-decoration: none;
background: #e0e0e0;
padding: 10px;
border: 4px solid #614E51 ;
display: inline-block;
transition: all 0.4s ease 0s;
}
.button:active {
border: 4px solid #ccbcbe;
}*/
</style>
</head>
<body onload="main()">
<canvas id="webgl" width="600" height="600">
Please use a browser that supports "canvas"
</canvas>
<div class="mainLocal">
<div class="textTitle spacebetween">
<div><h2>CS351 Project C - Walking the Dog with Drone</h2></div>
<div class="author">
Qifan Yang: QYL123
</div>
</div>
<div >
<h3> User Instructions <br /></h3>
<div id="sentence">
- Use the control panel on the right side to adjust most of the settings.
</div>
<h3> Keyboard Instructions <br /></h3>
<div id="sentence">
- 'M': Change the material of the sphere. </br>
- 'ZX': Increase/Decrease the shininess of the specific sphere material.</br></br>
- 'WASD': Perspective Translate.</br>
- 'IJKL': Perspective Rotation.</br>
- 'Space': Causes a wine glass to appear in the field, with corresponding animations.</br></br>
- 'P': Pause/Resume animation.</br>
- 'H': Show/Hide the control panel. </br>
</div>
<h3> Credits <br /></h3>
<div id="sentence">
- The initial code is given by Prof. John Tumblin from Northwestern University. </br>
- Gu Jie from Northwestern University coded the human and a part of the camera control system. </br>
</div>
</div>
<div id='DebugInfo' >
<div class="textTitle">
<h3>Debug Info</h3>
</div>
<div class="spacebetween">
<div class='width33'>
<b> KeyPress Event </b>
<div id='KeyModResult' class='stdHeight'> </div> <!-- myKeyDown() modifies this object -->
</div>
<div class='width33'>
<b> Mouse Location </b>
<div id='MouseAtResult' class='stdHeight'></div> <!-- myMouseMove() modifies this object -->
</div>
<div class='width33'>
<b> Mouse Drag Direction </b>
<div id='MouseDragResult' class='stdHeight'></div> <!-- myMouseUp() modifies this object -->
</div>
</div>
<div class="spacebetween">
<div class='width33'>
<b> Quaternion Rotation Value </b>
<div id='QuatValue' class='stdHeight'> </div> <!-- myKeyDown() modifies this object -->
</div>
</div>
</div>
</div>
<script src="lib/webgl-utils.js"></script>
<script src="lib/webgl-debug.js"></script>
<script src="lib/cuon-utils.js"></script>
<script src="lib/cuon-matrix-quat03.js"></script>
<script src="lib/materials_Ayerdi.js"></script>
<script src="lib/lights-JT.js"></script>
<script src="lib/dat.gui.js"></script>
<!-- YOU SHOULD UPGRADE to Brandon Jones' far-faster,
far more complete vector/matrix/quaternion library: (Google it!)
<script src="../lib/glmatrix.js"></script>-->
<script src="lib/shaders.js"></script>
<script src="scripts/models/mM_Axis.js"></script>
<script src="scripts/models/mM_Dog.js"></script>
<script src="scripts/models/mM_Grid.js"></script>
<script src="scripts/models/mM_Human.js"></script>
<script src="scripts/models/mM_Sphere.js"></script>
<script src="scripts/models/mM_Wineglass.js"></script>
<script src="scripts/models/mM_Ring.js"></script>
<script src="scripts/models/mM_Wing.js"></script>
<script src="scripts/models/mM_tweakedCylinder.js"></script>
<script src="scripts/models/mM_tweakedPillar.js"></script>
<script src="scripts/models/mM_DroneMisc.js"></script>
<script src="scripts/models/mM_makeAll.js"></script>
<script src="scripts/transform/mD_drawAll.js"></script>
<script src="scripts/transform/mD_Objects.js"></script>
<script src="scripts/assets/ContentMaker.js"></script>
<!-- You need to fix global offset for all VBOBoxes... or do you? -->
<script src="scripts/objects/VBOBox0.js"></script>
<script src="scripts/objects/VBOBox.js"></script>
<script src="scripts/animate.js"></script>
<script src="scripts/main.js"></script>
<script src="scripts/settings.js"></script>
<script src="scripts/ui_manager.js"></script>
<!-- Add dat.gui -->
<!-- Fix code in camera movement -->
</body>
</html>