meshoptimizer icon indicating copy to clipboard operation
meshoptimizer copied to clipboard

gltfpack removes existing KHR_textures_basisu extension

Open prollin opened this issue 2 years ago • 4 comments
trafficstars

Running gltfpack on a file already using the KHR_textures_basisu extension removes all traces of the extension in the output file

prollin avatar Feb 09 '23 17:02 prollin

This is not a bug and rather a current limitation - you can pass -tc to recompress source textures if they are present. If KHR_texture_basisu is a required extension, gltfpack currently will refuse to process the file, because it assumes the role of a tool that converts a "vanilla" glTF file (that doesn't use various compression extensions) to an optimized one (that might).

zeux avatar Feb 13 '23 02:02 zeux

For context, our use case was to use gltf-transform (or custom tool) for compression since it gave us a bit more flexibility there and gltfpack for geometry.

prollin avatar Feb 13 '23 18:02 prollin

Got it, thanks. Out of curiosity, what prevents you from using gltfpack to compress the textures as well?

zeux avatar Mar 01 '23 06:03 zeux

gltf-transform offers more granularity and more options for texture processing; we want to be able to resize certain class of textures and also have a bit more control over compression parameters.

prollin avatar Mar 09 '23 06:03 prollin