Skip to content

Commit 86ed706

Browse files
authored
Merge pull request #258 from zeux/meshopt-khr
Update BrainStem and DragonAttenuation to KHR_meshopt_compression
2 parents d91b63d + 393b15e commit 86ed706

File tree

10 files changed

+4780
-86
lines changed

10 files changed

+4780
-86
lines changed
340 KB
Binary file not shown.

Models/BrainStem/glTF-Meshopt-EXT/BrainStem.gltf

Lines changed: 4256 additions & 0 deletions
Large diffs are not rendered by default.
-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",
1.08 MB
Binary file not shown.

0 commit comments

Comments
 (0)