-
Notifications
You must be signed in to change notification settings - Fork 44
/
index.html
275 lines (248 loc) · 10.3 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>gltf-test: Testing glTF 2.0 Models in WebGL Libraries</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="sampleModels/model-index.js"></script>
<script src="tutorialModels/model-index.js"></script>
<script src="tutorialModels/pbr-model-index.js"></script>
<script src="tutorialModels/further-pbr-model-index.js"></script>
<script src="tutorialModels/feature-test-model-index.js"></script>
<script src="tutorialModels/compare-pbr-model-index.js"></script>
<script src="tutorialModels/extension-test-model-index.js"></script>
<script src="tutorialModels/wip-extension-test-model-index.js"></script>
<style>
table {
border-collapse: collapse;
width: 100%;
}
.table-container {
max-height: 300px;
overflow: auto;
width: 100%;
}
table {
border-spacing: 0;
}
th {
border-left: none;
border-right: 1px solid #bbbbbb;
padding: 5px;
width: 80px;
min-width: 80px;
position: sticky;
top: 0;
background: #727272;
color: #e0e0e0;
font-weight: normal;
}
td {
border-left: none;
border-right: 1px solid #bbbbbb;
border-bottom: 1px solid #bbbbbb;
padding: 5px;
width: 80px;
min-width: 80px;
}
th:nth-child(1),
td:nth-child(1) {
position: sticky;
left: 0;
width: 150px;
min-width: 150px;
}
th:nth-child(2),
td:nth-child(2) {
position: sticky;
/* 1st cell left/right padding + 1st cell width + 1st cell left/right border width */
/* 0 + 5 + 150 + 5 + 1 */
left: 161px;
width: 50px;
min-width: 50px;
}
td:nth-child(1),
td:nth-child(2) {
background: #efebf5;
}
th:nth-child(1),
th:nth-child(2) {
z-index: 2;
}
/* GitHub */
.github-link {
position: absolute;
top: 10px;
right: 10px;
background-color: #f8f9fa;
padding: 5px 10px;
border-radius: 5px;
font-weight: bold;
border: 1px solid #ddd;
}
.github-link a {
text-decoration: none;
color: #007bff;
}
.github-link a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container-fluid mt-4">
<h1><a href="https://github.com/cx20/gltf-test">gltf-test</a></h1>
<p>This page is a collection of links to sample code for displaying various <a href="https://github.com/KhronosGroup/glTF-Sample-Assets">glTF models</a>. You can try rendering the models using different <a href="https://www.khronos.org/webgl/">WebGL</a> libraries.</p>
<!-- Link to GitHub Repository -->
<div class="github-link">
<a href="https://github.com/cx20/gltf-test" target="_blank">View on GitHub</a>
</div>
<!-- Tabs -->
<ul class="nav nav-tabs" id="modelTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="tutorial-tab" data-toggle="tab" href="#tutorial" role="tab" aria-controls="tutorial" aria-selected="true">Tutorial Models</a>
</li>
<li class="nav-item">
<a class="nav-link" id="complex-tab" data-toggle="tab" href="#complex" role="tab" aria-controls="complex" aria-selected="false">Complex Models</a>
</li>
<li class="nav-item">
<a class="nav-link" id="pbr-tab" data-toggle="tab" href="#pbr" role="tab" aria-controls="pbr" aria-selected="false">PBR Models</a>
</li>
<li class="nav-item">
<a class="nav-link" id="further-pbr-tab" data-toggle="tab" href="#further-pbr" role="tab" aria-controls="further-pbr" aria-selected="false">Further PBR Models</a>
</li>
<li class="nav-item">
<a class="nav-link" id="feature-test-tab" data-toggle="tab" href="#feature-test" role="tab" aria-controls="feature-test" aria-selected="false">Feature Test Models</a>
</li>
<li class="nav-item">
<a class="nav-link" id="compare-pbr-tab" data-toggle="tab" href="#compare-pbr" role="tab" aria-controls="compare-pbr" aria-selected="false">Compare PBR Models</a>
</li>
<li class="nav-item">
<a class="nav-link" id="extension-test-tab" data-toggle="tab" href="#extension-test" role="tab" aria-controls="extension-test" aria-selected="false">Extension Test Models</a>
</li>
<li class="nav-item">
<a class="nav-link" id="wip-extension-test-tab" data-toggle="tab" href="#wip-extension-test" role="tab" aria-controls="wip-extension-test" aria-selected="false">WIP Extension Test Models</a>
</li>
</ul>
<!-- Tab Content -->
<div class="tab-content" id="modelTabContent">
<!-- Tutorial Models -->
<div class="tab-pane fade show active" id="tutorial" role="tabpanel" aria-labelledby="tutorial-tab">
<p>Test of Simple models for glTF 2.0 </p>
<table class="table table-bordered table-sm table-striped" id="tutorialModelTable">
<thead>
<tr>
<th>Model</th>
<th>Screenshot</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<!-- Complex Models -->
<div class="tab-pane fade" id="complex" role="tabpanel" aria-labelledby="complex-tab">
<p>Test of More complex models for glTF 2.0</p>
<table class="table table-bordered table-sm table-striped" id="modelTable">
<thead>
<tr>
<th>Model</th>
<th>Screenshot</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<!-- PBR Models -->
<div class="tab-pane fade" id="pbr" role="tabpanel" aria-labelledby="pbr-tab">
<p>Test of PBR models for glTF 2.0</p>
<table class="table table-bordered table-sm table-striped" id="tutorialPbrModelTable">
<thead>
<tr>
<th>Model</th>
<th>Screenshot</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<!-- Further PBR Models -->
<div class="tab-pane fade" id="further-pbr" role="tabpanel" aria-labelledby="further-pbr-tab">
<p>Test of Further PBR models for glTF 2.0</p>
<table class="table table-bordered table-sm table-striped" id="tutorialFurtherPbrModelTable">
<thead>
<tr>
<th>Model</th>
<th>Screenshot</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<!-- Feature Test Models -->
<div class="tab-pane fade" id="feature-test" role="tabpanel" aria-labelledby="feature-test-tab">
<p>Test of Feature Test models for glTF 2.0</p>
<table class="table table-bordered table-sm table-striped" id="tutorialFeatureTestModelTable">
<thead>
<tr>
<th>Model</th>
<th>Screenshot</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<!-- Compare PBR Models -->
<div class="tab-pane fade" id="compare-pbr" role="tabpanel" aria-labelledby="compare-pbr-tab">
<p>Test of Compare PBR models for glTF 2.0</p>
<table class="table table-bordered table-sm table-striped" id="tutorialComparePbrModelTable">
<thead>
<tr>
<th>Model</th>
<th>Screenshot</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<!-- Extension Test Models -->
<div class="tab-pane fade" id="extension-test" role="tabpanel" aria-labelledby="extension-test-tab">
<p>Test of Extension Test models for glTF 2.0</p>
<table class="table table-bordered table-sm table-striped" id="tutorialExtensionTestModelTable">
<thead>
<tr>
<th>Model</th>
<th>Screenshot</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<!-- WIP Extension Test Models -->
<div class="tab-pane fade" id="wip-extension-test" role="tabpanel" aria-labelledby="wip-extension-test-tab">
<p>Test of WIP Extension Test models for glTF 2.0</p>
<table class="table table-bordered table-sm table-striped" id="tutorialWipExtensionTestModelTable">
<thead>
<tr>
<th>Model</th>
<th>Screenshot</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<script src="index.js"></script>
</body>
</html>