Skip to content

Decoding Failed in threejs after upgrading to [email protected] #488

Closed Answered by donmccurdy
oddnugget asked this question in Q&A
Discussion options

You must be logged in to vote

glTF Transform won't be able to write a file without also rewriting the associated .bin – there's too much to keep track of to be sure that the .bin hasn't changed, even if you're only merging materials. Moreover, loading the model in glTF Transform decompresses mesh data for editing. If you do something like gltf-transform copy in_compressed.glb out.glb you'll see this warning:

Decoded KHR_draco_mesh_compression. Further compression will be lossy.

To merge two files without decompressing anything I think you'd need to work directly with the raw JSON, and do pretty careful binary operations on the .bin files. In general it is much easier to do processing before compression, and save com…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@oddnugget
Comment options

@donmccurdy
Comment options

@oddnugget
Comment options

@donmccurdy
Comment options

Answer selected by donmccurdy
@oddnugget
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants