CesiumGS / gltf-pipeline

Content pipeline tools for optimizing glTF assets. :globe_with_meridians:
Apache License 2.0
1.94k stars 250 forks source link

After compression I use the compressed gltf to build my b3dm file,but can not loading in Censium #556

Open buptzqr opened 4 years ago

buptzqr commented 4 years ago

Screenshot from 2020-08-27 18-13-21

lilleyse commented 4 years ago

@buptzqr could you see if it works in other engines like ThreeJS: https://gltf-viewer.donmccurdy.com/

Also if you're able to share the original model that would be helpful.

buptzqr commented 4 years ago

@lilleyse thanks for your reply. Due to some reason, I can't share my model. My project was based on Censium so I can't change the engines. I also tried the workaround that you gave in https://github.com/CesiumGS/3d-tiles-tools/issues/13, but it seems I lost too much medadata. I noticed that you said you were getting very close to merging the gltf-pipeline 2.0 branch into master, but I got the same error like https://github.com/CesiumGS/3d-tiles-tools/issues/13. I really want to konw how to compress the b3dm in Censium. Any help would be greatly appreciated.

buptzqr commented 4 years ago

@lilleyse I used gltf-pileline to compress my gltf file. It was ok when I used https://gltf-viewer.donmccurdy.com/ to show the compressed gltf file. Then I read the compressed gltf file's data in binary mode to build my b3dm file. Finally I got the error as I mentioned above. Am I doing something wrong?