How to implement a c++ version of glb decoder and export uncompressed glb files
xinghaoyujianni opened this issue · 1 comments
xinghaoyujianni commented
Hopefully a c++ version of the decoder can be implemented to decode compressed glb files to uncompressed glb for use by other c++3D programs
zeux commented
Are you looking for a C++ code example? If so, if you are using cgltf you can use the snippet here: jkuhlmann/cgltf#129 (comment) to decompress the buffers.
If you're looking for command line GLB conversion, I plan to implement support for EXT_meshopt_compression in gltfpack in input files in the future. It's also worth noting that gltf-transform supports EXT_meshopt_compression out of the box, so you can gltf-transform cp compressed.glb result.glb
to decompress if you need to.