Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

glTF file size after Draco compression

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

lilleysecommented, May 17, 2018

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.

type size
obj 7846 KB
drc 247 KB
gltf w/ draco JSON 8 KB
gltf w/ draco .bin 239 KB

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.

lilleysecommented, Jun 21, 2018

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 However I don’t think this is the issue you’re encountering.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GLTF Draco Compression tutorial - byte size - YouTube
With the latest update (September Release) 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found