google / usd_from_gltf

Apache License 2.0
547 stars 85 forks source link

.glb to .usd increases the file size by 3x #77

Open v-prgmr opened 3 years ago

v-prgmr commented 3 years ago

Hi guys,

I have a draco compression encoded .glb file that I want to convert to .usdz using this tool. After conversion, the filesize gets increased by 3x. Does anybody know why?

mimeeq-neal commented 3 years ago

that's because its uncompressed and then converted as USDZ cannot be compressed with Draco, so a compressed GLB will be smaller as a result, in my experience a GLB with level 5 compression ranges between 10-20 smaller than when its uncompressed, however, USDZ is generally smaller than an uncompressed GLB so you will not see this 10-20 difference in fact but it will be bigger