glTF file size after Draco compression
See original GitHub issueWhen I’m compressing the model using Draco:
model.obj (8,000 KB) -> model.drc (204 KB)
Using glTF Pipeline:
model.gltf (304 KB) + model.bin (8,000 KB) -> modelDraco.gltf (200 KB) + modelDraco.bin (865 KB)
So .gltf file is x5 bigger than .drc. Am I doing something wrong or just completely misunderstanding the purpose of the glTF file format?
I know it’s a silly question, but it can probably help beginners like me. Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
GLTF Draco Compression tutorial - byte size - YouTube
With the latest update (September Release) cables.gl supports Draco Compressed 3D models in the GLTF file format.
Read more >Draco Compressing and uncrompressing with Blender ...
Hello there, so I've been experimenting with gltf and Draco compression and the draco-compressed filesize is great.
Read more >DracoMeshCompression - glTF-Transform
For models where geometry is a significant factor (>1 MB), Draco can reduce filesize by ~95% in many cases. When animation or textures...
Read more >Draco Compression for SOLIDWORKS Visualize GLTF and ...
3D scenes from SOLIDWORKS Visualize often have large file sizes, which can cause problems in scenarios that require the .glTF or .glB formats,...
Read more >Geometry looks bad after using Draco compression - Questions
Draco also has a compression level setting (0-10) that isn't currently exposed. By default it is 7. Try different settings with gltf-pipeline to ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m not noticing any worse compression when using gltf-pipeline vs. draco executable. I checked that they use the same default compression options. The model I tested is the Stanford Dragon which contains positions, normals, and some objects with tex coords.
dragon.zip
Check how many primitives your gltf contains - it’s possible that the obj->drac encoder is combing all mesh data into a single primitive and compressing that, whereas gltf-pipeline compresses each primitive individually. Feel free to upload your obj model as well.
Make sure you are on the 2.0 branch when testing Draco.
But yes, the Draco glTF extension applies compression on a per-primitive basis and does not alter the hierarchy or combine primitives.
EDIT: there is one case where primitives may be split - if primitives have different materials but reference the same indices. See https://github.com/AnalyticalGraphicsInc/gltf-pipeline/issues/369#issuecomment-386841595. However I don’t think this is the issue you’re encountering.