Skip to content

Commit c512ccf

Browse files
committed
Models: Update BrainStem and DragonAttenuation to KHR_meshopt
The updates are performed by converting the source models with gltfpack, using -cz for DragonAttenuation and -cz -vpf for BrainStem (consistent with the original conversion settings), and post-processing the glTF files using `jq` as a pretty-printer.
1 parent 68ce9c5 commit c512ccf

File tree

4 files changed

+86
-86
lines changed

4 files changed

+86
-86
lines changed
-18.9 KB
Binary file not shown.

Models/BrainStem/glTF-Meshopt/BrainStem.gltf

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
2+
"asset": {
3+
"version": "2.0",
4+
"generator": "gltfpack 1.0"
5+
},
6+
"extensionsUsed": [
7+
"KHR_mesh_quantization",
8+
"KHR_meshopt_compression"
9+
],
10+
"extensionsRequired": [
11+
"KHR_mesh_quantization",
12+
"KHR_meshopt_compression"
13+
],
214
"buffers": [
315
{
416
"uri": "BrainStem.bin",
5-
"byteLength": 347840
17+
"byteLength": 328492
618
},
719
{
820
"byteLength": 1302348,
921
"extensions": {
10-
"EXT_meshopt_compression": {
22+
"KHR_meshopt_compression": {
1123
"fallback": true
1224
}
1325
}
1426
}
1527
],
16-
"asset": {
17-
"version": "2.0",
18-
"generator": "gltfpack 0.20"
19-
},
20-
"extensionsUsed": [
21-
"KHR_mesh_quantization",
22-
"EXT_meshopt_compression"
23-
],
24-
"extensionsRequired": [
25-
"KHR_mesh_quantization",
26-
"EXT_meshopt_compression"
27-
],
2828
"bufferViews": [
2929
{
3030
"buffer": 1,
@@ -33,10 +33,10 @@
3333
"byteStride": 4,
3434
"target": 34962,
3535
"extensions": {
36-
"EXT_meshopt_compression": {
36+
"KHR_meshopt_compression": {
3737
"buffer": 0,
3838
"byteOffset": 0,
39-
"byteLength": 2646,
39+
"byteLength": 686,
4040
"byteStride": 4,
4141
"mode": "ATTRIBUTES",
4242
"count": 34084
@@ -50,10 +50,10 @@
5050
"byteStride": 4,
5151
"target": 34962,
5252
"extensions": {
53-
"EXT_meshopt_compression": {
53+
"KHR_meshopt_compression": {
5454
"buffer": 0,
55-
"byteOffset": 2648,
56-
"byteLength": 68972,
55+
"byteOffset": 688,
56+
"byteLength": 67060,
5757
"byteStride": 4,
5858
"mode": "ATTRIBUTES",
5959
"filter": "OCTAHEDRAL",
@@ -68,10 +68,10 @@
6868
"byteStride": 12,
6969
"target": 34962,
7070
"extensions": {
71-
"EXT_meshopt_compression": {
71+
"KHR_meshopt_compression": {
7272
"buffer": 0,
73-
"byteOffset": 71620,
74-
"byteLength": 148194,
73+
"byteOffset": 67748,
74+
"byteLength": 138908,
7575
"byteStride": 12,
7676
"mode": "ATTRIBUTES",
7777
"filter": "EXPONENTIAL",
@@ -86,10 +86,10 @@
8686
"byteStride": 4,
8787
"target": 34962,
8888
"extensions": {
89-
"EXT_meshopt_compression": {
89+
"KHR_meshopt_compression": {
9090
"buffer": 0,
91-
"byteOffset": 219816,
92-
"byteLength": 2165,
91+
"byteOffset": 206656,
92+
"byteLength": 159,
9393
"byteStride": 4,
9494
"mode": "ATTRIBUTES",
9595
"count": 34084
@@ -102,9 +102,9 @@
102102
"byteLength": 369996,
103103
"target": 34963,
104104
"extensions": {
105-
"EXT_meshopt_compression": {
105+
"KHR_meshopt_compression": {
106106
"buffer": 0,
107-
"byteOffset": 221984,
107+
"byteOffset": 206816,
108108
"byteLength": 68380,
109109
"byteStride": 2,
110110
"mode": "TRIANGLES",
@@ -117,10 +117,10 @@
117117
"byteOffset": 1188012,
118118
"byteLength": 1152,
119119
"extensions": {
120-
"EXT_meshopt_compression": {
120+
"KHR_meshopt_compression": {
121121
"buffer": 0,
122-
"byteOffset": 290364,
123-
"byteLength": 1044,
122+
"byteOffset": 275196,
123+
"byteLength": 860,
124124
"byteStride": 64,
125125
"mode": "ATTRIBUTES",
126126
"count": 18
@@ -132,10 +132,10 @@
132132
"byteOffset": 1189164,
133133
"byteLength": 4192,
134134
"extensions": {
135-
"EXT_meshopt_compression": {
135+
"KHR_meshopt_compression": {
136136
"buffer": 0,
137-
"byteOffset": 291408,
138-
"byteLength": 2542,
137+
"byteOffset": 276056,
138+
"byteLength": 2470,
139139
"byteStride": 4,
140140
"mode": "ATTRIBUTES",
141141
"count": 1048
@@ -147,10 +147,10 @@
147147
"byteOffset": 1193356,
148148
"byteLength": 108992,
149149
"extensions": {
150-
"EXT_meshopt_compression": {
150+
"KHR_meshopt_compression": {
151151
"buffer": 0,
152-
"byteOffset": 293952,
153-
"byteLength": 53886,
152+
"byteOffset": 278528,
153+
"byteLength": 49963,
154154
"byteStride": 8,
155155
"mode": "ATTRIBUTES",
156156
"filter": "QUATERNION",
-277 KB
Binary file not shown.

Models/DragonAttenuation/glTF-Meshopt/DragonAttenuation.gltf

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,97 @@
11
{
2-
"buffers": [
3-
{
4-
"uri": "DragonAttenuation.bin",
5-
"byteLength": 1137148
6-
},
7-
{
8-
"byteLength": 3562564,
9-
"extensions": {
10-
"EXT_meshopt_compression": {
11-
"fallback": true
12-
}
13-
}
14-
}
15-
],
162
"asset": {
173
"version": "2.0",
18-
"generator": "gltfpack 0.20"
4+
"generator": "gltfpack 1.0"
195
},
206
"extensionsUsed": [
217
"KHR_mesh_quantization",
22-
"EXT_meshopt_compression",
8+
"KHR_meshopt_compression",
239
"KHR_texture_transform",
2410
"KHR_materials_transmission",
2511
"KHR_materials_volume",
2612
"KHR_materials_variants"
2713
],
2814
"extensionsRequired": [
2915
"KHR_mesh_quantization",
30-
"EXT_meshopt_compression"
16+
"KHR_meshopt_compression"
17+
],
18+
"buffers": [
19+
{
20+
"uri": "DragonAttenuation.bin",
21+
"byteLength": 853468
22+
},
23+
{
24+
"byteLength": 2929540,
25+
"extensions": {
26+
"KHR_meshopt_compression": {
27+
"fallback": true
28+
}
29+
}
30+
}
3131
],
3232
"bufferViews": [
3333
{
3434
"buffer": 1,
3535
"byteOffset": 0,
36-
"byteLength": 1102648,
36+
"byteLength": 786136,
3737
"byteStride": 8,
3838
"target": 34962,
3939
"extensions": {
40-
"EXT_meshopt_compression": {
40+
"KHR_meshopt_compression": {
4141
"buffer": 0,
4242
"byteOffset": 0,
43-
"byteLength": 486747,
43+
"byteLength": 335698,
4444
"byteStride": 8,
4545
"mode": "ATTRIBUTES",
46-
"count": 137831
46+
"count": 98267
4747
}
4848
}
4949
},
5050
{
5151
"buffer": 1,
52-
"byteOffset": 1102648,
53-
"byteLength": 551324,
52+
"byteOffset": 786136,
53+
"byteLength": 393068,
5454
"byteStride": 4,
5555
"target": 34962,
5656
"extensions": {
57-
"EXT_meshopt_compression": {
57+
"KHR_meshopt_compression": {
5858
"buffer": 0,
59-
"byteOffset": 486748,
60-
"byteLength": 176142,
59+
"byteOffset": 335700,
60+
"byteLength": 168385,
6161
"byteStride": 4,
6262
"mode": "ATTRIBUTES",
6363
"filter": "OCTAHEDRAL",
64-
"count": 137831
64+
"count": 98267
6565
}
6666
}
6767
},
6868
{
6969
"buffer": 1,
70-
"byteOffset": 1653972,
71-
"byteLength": 551324,
70+
"byteOffset": 1179204,
71+
"byteLength": 393068,
7272
"byteStride": 4,
7373
"target": 34962,
7474
"extensions": {
75-
"EXT_meshopt_compression": {
75+
"KHR_meshopt_compression": {
7676
"buffer": 0,
77-
"byteOffset": 662892,
78-
"byteLength": 320388,
77+
"byteOffset": 504088,
78+
"byteLength": 193677,
7979
"byteStride": 4,
8080
"mode": "ATTRIBUTES",
81-
"count": 137831
81+
"count": 98267
8282
}
8383
}
8484
},
8585
{
8686
"buffer": 1,
87-
"byteOffset": 2205296,
87+
"byteOffset": 1572272,
8888
"byteLength": 262674,
8989
"target": 34963,
9090
"extensions": {
91-
"EXT_meshopt_compression": {
91+
"KHR_meshopt_compression": {
9292
"buffer": 0,
93-
"byteOffset": 983280,
94-
"byteLength": 50536,
93+
"byteOffset": 697768,
94+
"byteLength": 51627,
9595
"byteStride": 2,
9696
"mode": "TRIANGLES",
9797
"count": 131337
@@ -100,14 +100,14 @@
100100
},
101101
{
102102
"buffer": 1,
103-
"byteOffset": 2467972,
103+
"byteOffset": 1834948,
104104
"byteLength": 1094592,
105105
"target": 34963,
106106
"extensions": {
107-
"EXT_meshopt_compression": {
107+
"KHR_meshopt_compression": {
108108
"buffer": 0,
109-
"byteOffset": 1033816,
110-
"byteLength": 103329,
109+
"byteOffset": 749396,
110+
"byteLength": 104069,
111111
"byteStride": 4,
112112
"mode": "TRIANGLES",
113113
"count": 273648
@@ -120,7 +120,7 @@
120120
"bufferView": 0,
121121
"byteOffset": 0,
122122
"componentType": 5123,
123-
"count": 61022,
123+
"count": 22202,
124124
"type": "VEC3",
125125
"min": [
126126
4455,
@@ -137,15 +137,15 @@
137137
"bufferView": 1,
138138
"byteOffset": 0,
139139
"componentType": 5120,
140-
"count": 61022,
140+
"count": 22202,
141141
"type": "VEC3",
142142
"normalized": true
143143
},
144144
{
145145
"bufferView": 2,
146146
"byteOffset": 0,
147147
"componentType": 5123,
148-
"count": 61022,
148+
"count": 22202,
149149
"type": "VEC2",
150150
"normalized": true
151151
},
@@ -158,9 +158,9 @@
158158
},
159159
{
160160
"bufferView": 0,
161-
"byteOffset": 488176,
161+
"byteOffset": 177616,
162162
"componentType": 5123,
163-
"count": 76809,
163+
"count": 76065,
164164
"type": "VEC3",
165165
"min": [
166166
0,
@@ -175,17 +175,17 @@
175175
},
176176
{
177177
"bufferView": 1,
178-
"byteOffset": 244088,
178+
"byteOffset": 88808,
179179
"componentType": 5120,
180-
"count": 76809,
180+
"count": 76065,
181181
"type": "VEC3",
182182
"normalized": true
183183
},
184184
{
185185
"bufferView": 2,
186-
"byteOffset": 244088,
186+
"byteOffset": 88808,
187187
"componentType": 5123,
188-
"count": 76809,
188+
"count": 76065,
189189
"type": "VEC2",
190190
"normalized": true
191191
},

0 commit comments

Comments
 (0)