Reduce capacity after conversion from gltf to glb #1585
Replies: 1 comment
-
Hi @EthanKyleKim! It's not clear to me how you're using the glTF Transform library, or if you are? If your original textures are part of a .gltf/.glb file then that file would need to be updated to reference the new (.ktx2) textures after KTX2 compression, the 'toktx' CLI alone does not do that. In the gltf-transform CLI there's a built-in feature for UASTC compression that does this repackaging for you, see If you're still not able to reduce the size of the file, and if you can share the file, and I might be able to spot something by looking at it. |
Beta Was this translation helpful? Give feedback.
-
I'm glad to see you.
I just worked on changing .gltf file to .glb.
To go into detail
I used �toktx to convert .png into ktx2 format and then super-compressed it again using ktxsc
But after all this texturing, I converted gltf into .glb
It came out to 167MB. I want a smaller capacity than this
The capacity I want is about 30MB, but I'm not sure if it's this possible.
I was wondering how to reduce the size of the glb file as much as possible while maintaining good quality.
The resolution is 4096x4096.
Should there be no problem if I change it from 4096 to 2048 or lower resolution?
Below is the value I used when I applied toktx and ktxsc
toktx --uastc --zcmp 19
ktxsc --encode uastc --zcmp 19 -o
And these are the texture files I'm using I converted from png to ktx2.
devtools
I need your knowledge!
Beta Was this translation helpful? Give feedback.
All reactions