CesiumGS / gltf-pipeline

Content pipeline tools for optimizing glTF assets. :globe_with_meridians:
Apache License 2.0
1.87k stars 241 forks source link

Meshes are corrupted #614

Closed schwarzsky closed 2 years ago

schwarzsky commented 2 years ago

chrome_sKt4pxMHjl As you can see, you can saw the back of the meshes. This is not supposed to be happen. Any idea? Tried lowering compressionSize.

lilleyse commented 2 years ago

@schwarzsky could you post the full command? Is this just a problem with Draco compression?

lilleyse commented 2 years ago

Also if you can post the original glTF that would be helpful too

schwarzsky commented 2 years ago

First used npx gltf-pipeline -i SnowyTerrain.glb -d --draco.compressionLevel 10 -o Snowy.glb Then downed scale to 10 to 1.

I don't own the builds its not right to post GLB file but if you want it anyway i can get permission i think.

Also yes, this is a problem with Draco compression. Before compression model looks quite right. @lilleyse

lilleyse commented 2 years ago

A couple more options you could try:

schwarzsky commented 2 years ago

Just used --draco.unifiedQuantization and solved the issue. Thanks!