Skip to content

Commit c276d7c

Browse files
committed
optionally provide EXT_meshopt_compression
1 parent b1e6a45 commit c276d7c

444 files changed

Lines changed: 29487 additions & 26756 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
-79.3 KB
Binary file not shown.
160 KB
Binary file not shown.
Lines changed: 148 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -1,142 +1,152 @@
11
{
2-
"accessors": [
3-
{
4-
"name": "<STL_BINARY>_1_0_positions",
5-
"componentType": 5126,
6-
"count": 6001,
7-
"min": [
8-
-0.029500000178813934,
9-
-0.0949999988079071,
10-
-0.05673849955201149
11-
],
12-
"max": [
13-
0.011300000362098217,
14-
0.0017000000225380063,
15-
0.05673849955201149
16-
],
17-
"type": "VEC3",
18-
"bufferView": 0,
19-
"byteOffset": 0
2+
"asset": {
3+
"version": "2.0",
4+
"generator": "gltfpack 0.23"
205
},
21-
{
22-
"name": "<STL_BINARY>_1_0_normals",
23-
"componentType": 5126,
24-
"count": 6001,
25-
"min": [
26-
-1,
27-
-1,
28-
-1
29-
],
30-
"max": [
31-
1,
32-
1,
33-
1
34-
],
35-
"type": "VEC3",
36-
"bufferView": 1,
37-
"byteOffset": 0
38-
},
39-
{
40-
"name": "<STL_BINARY>_1_0_indices",
41-
"componentType": 5123,
42-
"count": 9828,
43-
"min": [
44-
0
45-
],
46-
"max": [
47-
6000
48-
],
49-
"type": "SCALAR",
50-
"bufferView": 2,
51-
"byteOffset": 0
52-
}
53-
],
54-
"asset": {
55-
"generator": "obj2gltf",
56-
"version": "2.0"
57-
},
58-
"buffers": [
59-
{
60-
"name": "base_link",
61-
"byteLength": 163680,
62-
"uri": "base_link.bin"
63-
}
64-
],
65-
"bufferViews": [
66-
{
67-
"name": "bufferView_0",
68-
"buffer": 0,
69-
"byteLength": 72012,
70-
"byteOffset": 0,
71-
"byteStride": 12,
72-
"target": 34962
73-
},
74-
{
75-
"name": "bufferView_1",
76-
"buffer": 0,
77-
"byteLength": 72012,
78-
"byteOffset": 72012,
79-
"byteStride": 12,
80-
"target": 34962
81-
},
82-
{
83-
"name": "bufferView_2",
84-
"buffer": 0,
85-
"byteLength": 19656,
86-
"byteOffset": 144024,
87-
"target": 34963
88-
}
89-
],
90-
"materials": [
91-
{
92-
"name": "AluminumBodyMaterial",
93-
"pbrMetallicRoughness": {
94-
"baseColorFactor": [
95-
0.001,
96-
0.001,
97-
0.001,
98-
1
99-
],
100-
"metallicFactor": 0,
101-
"roughnessFactor": 0.5
102-
},
103-
"emissiveFactor": [
104-
0,
105-
0,
106-
0
107-
],
108-
"alphaMode": "OPAQUE",
109-
"doubleSided": false
110-
}
111-
],
112-
"meshes": [
113-
{
114-
"name": "<STL_BINARY>_1",
115-
"primitives": [
6+
"extensionsUsed": [
7+
"EXT_meshopt_compression"
8+
],
9+
"buffers": [
10+
{
11+
"uri": "base_link.bin",
12+
"byteLength": 82480
13+
},
14+
{
15+
"uri": "base_link.fallback.bin",
16+
"byteLength": 163680,
17+
"extensions": {
18+
"EXT_meshopt_compression": {
19+
"fallback": true
20+
}
21+
}
22+
}
23+
],
24+
"bufferViews": [
25+
{
26+
"buffer": 1,
27+
"byteOffset": 0,
28+
"byteLength": 72012,
29+
"byteStride": 12,
30+
"target": 34962,
31+
"extensions": {
32+
"EXT_meshopt_compression": {
33+
"buffer": 0,
34+
"byteOffset": 0,
35+
"byteLength": 48764,
36+
"byteStride": 12,
37+
"mode": "ATTRIBUTES",
38+
"count": 6001
39+
}
40+
}
41+
},
42+
{
43+
"buffer": 1,
44+
"byteOffset": 72012,
45+
"byteLength": 72012,
46+
"byteStride": 12,
47+
"target": 34962,
48+
"extensions": {
49+
"EXT_meshopt_compression": {
50+
"buffer": 0,
51+
"byteOffset": 48764,
52+
"byteLength": 30355,
53+
"byteStride": 12,
54+
"mode": "ATTRIBUTES",
55+
"count": 6001
56+
}
57+
}
58+
},
59+
{
60+
"buffer": 1,
61+
"byteOffset": 144024,
62+
"byteLength": 19656,
63+
"target": 34963,
64+
"extensions": {
65+
"EXT_meshopt_compression": {
66+
"buffer": 0,
67+
"byteOffset": 79120,
68+
"byteLength": 3357,
69+
"byteStride": 2,
70+
"mode": "TRIANGLES",
71+
"count": 9828
72+
}
73+
}
74+
}
75+
],
76+
"accessors": [
77+
{
78+
"bufferView": 0,
79+
"byteOffset": 0,
80+
"componentType": 5126,
81+
"count": 6001,
82+
"type": "VEC3",
83+
"min": [
84+
-0.0295000002,
85+
-0.0949999988,
86+
-0.0567384996
87+
],
88+
"max": [
89+
0.0113000004,
90+
0.00170000002,
91+
0.0567384996
92+
]
93+
},
94+
{
95+
"bufferView": 1,
96+
"byteOffset": 0,
97+
"componentType": 5126,
98+
"count": 6001,
99+
"type": "VEC3"
100+
},
101+
{
102+
"bufferView": 2,
103+
"byteOffset": 0,
104+
"componentType": 5123,
105+
"count": 9828,
106+
"type": "SCALAR"
107+
}
108+
],
109+
"materials": [
110+
{
111+
"name": "AluminumBodyMaterial",
112+
"pbrMetallicRoughness": {
113+
"baseColorFactor": [
114+
0.00100000005,
115+
0.00100000005,
116+
0.00100000005,
117+
1
118+
],
119+
"metallicFactor": 0,
120+
"roughnessFactor": 0.5
121+
}
122+
}
123+
],
124+
"meshes": [
125+
{
126+
"primitives": [
127+
{
128+
"attributes": {
129+
"POSITION": 0,
130+
"NORMAL": 1
131+
},
132+
"indices": 2,
133+
"material": 0
134+
}
135+
]
136+
}
137+
],
138+
"nodes": [
139+
{
140+
"name": "<STL_BINARY>",
141+
"mesh": 0
142+
}
143+
],
144+
"scenes": [
116145
{
117-
"attributes": {
118-
"POSITION": 0,
119-
"NORMAL": 1
120-
},
121-
"indices": 2,
122-
"material": 0,
123-
"mode": 4
146+
"nodes": [
147+
0
148+
]
124149
}
125-
]
126-
}
127-
],
128-
"nodes": [
129-
{
130-
"name": "<STL_BINARY>",
131-
"mesh": 0
132-
}
133-
],
134-
"scene": 0,
135-
"scenes": [
136-
{
137-
"nodes": [
138-
0
139-
]
140-
}
141-
]
142-
}
150+
],
151+
"scene": 0
152+
}
-215 KB
Binary file not shown.
447 KB
Binary file not shown.

0 commit comments

Comments
 (0)