When I compress them normally they are not shown in the scene. I get no errors but they are not shown. When I disable KHR during compression they are working properly.
Could this be a fault of Three.js or gltfpack?
I am using Three.js r115.
I am not using the -c option so I guess the three.js version of GLTFLoader should work.
I am referring to the -noq option.
Everything works properly after the compression when I use the -noq option. The problem appears when I use the defaults of gltfpack.
It works properly in the viewers. Here is the models before and after the compression.ball.gltf (193.8 KB) ball-after.bin (16.9 KB) ball-after.gltf (1.1 KB)
Sadly I don’t have the knowledge to look through the model and find the problem. Maybe there is a problem in Three.js?
If it’s working correctly in the viewer http://gltf-viewer.donmccurdy.com/, then it works in three.js — that viewer is built with three.js. Can you share your code for how you’re loading the model? Are you sure it works correctly before you compress it with gltfpack?