mirror of https://github.com/mosra/magnum.git
Browse Source
When using the -P or -M options on a large scene, it can happen that the conversion would fail for a small number of outliers. For example there can be some line meshes which aren't supported by MeshOptimizer, or there are 16-bit images not supported by a certain image conversion plugin. Failing the whole operation in that case may be too radical, especially if the only alternative would be to write a Python script that deals with the outliers in a custom way. The option simply makes the processing step pass through the original data unchanged, which may be a simple and good-enough solution in many of those cases.pull/620/head
8 changed files with 120 additions and 2 deletions
|
After Width: | Height: | Size: 77 B |
@ -0,0 +1,10 @@
|
||||
{ |
||||
"asset": { |
||||
"version": "2.0" |
||||
}, |
||||
"images": [ |
||||
{ |
||||
"uri": "image-passthrough-on-failure.0.png" |
||||
} |
||||
] |
||||
} |
||||
Binary file not shown.
@ -0,0 +1,16 @@
|
||||
type = "3f3f3f 3f3f3f" |
||||
input = [ |
||||
# 2 3--5 |
||||
# |\ \ | |
||||
# | \ \| |
||||
# 0--1 4 |
||||
-1, -1, 0, |
||||
1, -1, 0, |
||||
-1, 1, 0, |
||||
|
||||
-1, 1, 0, |
||||
1, -1, 0, |
||||
1, 1, 0, |
||||
] |
||||
|
||||
# kate: hl python |
||||
@ -0,0 +1,37 @@
|
||||
{ |
||||
"asset": { |
||||
"version": "2.0" |
||||
}, |
||||
"buffers": [ |
||||
{ |
||||
"uri": "mesh-passthrough-on-failure.bin", |
||||
"byteLength": 72 |
||||
} |
||||
], |
||||
"bufferViews": [ |
||||
{ |
||||
"buffer": 0, |
||||
"byteOffset": 0, |
||||
"byteLength": 72 |
||||
} |
||||
], |
||||
"accessors": [ |
||||
{ |
||||
"bufferView": 0, |
||||
"componentType": 5126, |
||||
"count": 6, |
||||
"type": "VEC3" |
||||
} |
||||
], |
||||
"meshes": [ |
||||
{ |
||||
"primitives": [ |
||||
{ |
||||
"attributes": { |
||||
"POSITION": 0 |
||||
} |
||||
} |
||||
] |
||||
} |
||||
] |
||||
} |
||||
Loading…
Reference in new issue