Draco is an open-source library for compressing and decompressing 3D geometry, including triangle meshes and point clouds, released by Google in 2017. In 3D file formats & pipelines, it is best known as the compression method behind the glTF extension KHR_draco_mesh_compression, which can make mesh data several times smaller than the uncompressed original.
Draco compression targets geometry, not textures. It reduces the size of vertex positions, normals, texture coordinates, colors and connectivity, which makes it valuable for web viewers, mobile apps, digital twins and streamed 3D maps where download size directly affects loading time.
How Draco compresses mesh geometry
Draco combines two kinds of compression: one for mesh connectivity and one for vertex attributes. Connectivity describes which vertices form each triangle, while attributes describe what each vertex carries, such as position or normal. Treating them separately lets each use the most effective method.
For connectivity, Draco’s main method is based on Edgebreaker, an algorithm that walks across the triangle surface and encodes it as a compact sequence of symbols. This often needs only a few bits per triangle, compared with the 32 or 48 bits that plain index buffers use. A simpler sequential encoding is also available and preserves vertex order at the cost of a larger file.
For attributes, Draco applies quantization, which maps floating-point values onto a fixed number of integer bits, then uses prediction schemes that guess each value from already decoded neighbors and store only the small difference. Entropy coding finally packs these differences tightly.
| Stage | Applies to | What it achieves |
|---|---|---|
| Quantization | Positions, normals, UVs, colors | Fewer bits per value; controlled loss |
| Connectivity encoding | Triangle indices | Compact description of topology |
| Prediction | Vertex attributes | Small residuals instead of full values |
| Entropy coding | All encoded data | Final lossless packing of the stream |
Point clouds follow a slightly different path. Because they have no triangles, Draco skips connectivity encoding and uses a spatial tree structure to order and predict point positions. This makes it useful for lidar and scan data, where millions of points with colors or intensities must travel over limited bandwidth.
Quantization settings and compression levels
Draco is lossy by design because quantization discards precision. The amount of loss is controlled by the number of quantization bits per attribute, and the encoder also offers a compression level from 0 to 10 that trades encoding and decoding speed for size.
The table shows common bit settings. Exact defaults differ between the reference encoder and pipeline tools, so these are typical working values rather than fixed standards.
| Attribute | Common bits | Effect of too few bits |
|---|---|---|
| Position | 11 to 16 | Visible snapping, cracks between parts |
| Normal | 8 to 10 | Faceted or banded shading |
| Texture coordinate | 10 to 12 | Texture swimming and seam errors |
| Color | 8 | Color banding on gradients |
| Generic attribute | 8 to 12 | Errors in skin weights or custom data |
Position precision depends on model size. Quantization divides the model’s bounding box into a grid, so a 14-bit setting on a building 100 meters long gives a grid step of roughly 6 millimeters, while the same setting on a ring 2 centimeters wide gives a far finer step. Large scenes need more bits or splitting into tiles.
Draco in glTF and other formats
Draco is most widely used through the glTF extension KHR_draco_mesh_compression. A compressed glTF or GLB file stores Draco bitstreams in its buffers, and a loader decodes them into ordinary vertex buffers before rendering. Viewers such as Three.js and Babylon.js ship a WebAssembly Draco decoder for this purpose.
Draco also appears in 3D Tiles for streamed city and terrain data, and as a standalone .drc file format for meshes and point clouds. It is not a general scene format: materials, animation and scene graph data stay in the container format, such as glTF.
| Option | Approach | Strength | Trade-off |
|---|---|---|---|
| Draco | Edgebreaker, quantization, prediction | Smallest geometry downloads | CPU decoding time, lossy |
| Meshopt compression | Reordering and fast byte codecs | Very fast decoding, GPU-friendly | Usually larger than Draco |
| Mesh quantization only | Smaller integer vertex types | No decoder needed | Modest size reduction |
| Uncompressed glTF | Raw float buffers | Simplest and exact | Largest files |
Using Draco in an asset pipeline
Draco is normally applied at the end of an asset pipeline, after modeling, UV work and optimization. Exporters in digital content creation tools and command-line processors can apply it while writing glTF, so artists keep working with uncompressed source files.
| Situation | Recommendation | Reason |
|---|---|---|
| Large static meshes on the web | Use Draco | Download size dominates load time |
| Scans and photogrammetry | Use Draco with tested bits | Dense geometry compresses strongly |
| Many small models | Consider Meshopt | Decoder start-up cost adds up |
| Exact CAD tolerances required | Avoid or use high bits | Quantization changes coordinates |
| Texture-heavy assets | Add KTX 2.0 textures | Draco does not compress images |
Good practice is to keep an uncompressed master and treat Draco files as delivery artifacts. Compressing twice, or editing and re-exporting a Draco-compressed file, accumulates quantization error and should be avoided.
Limitations and common mistakes
Draco saves bandwidth but adds decoding work on the client. On low-power phones, decoding a large mesh can take noticeably longer than downloading a smaller uncompressed portion, so teams should measure total time to first render, not file size alone.
- Vertex order changes with Edgebreaker encoding, which breaks tools that depend on stable vertex indices.
- Missing decoder setup in a web viewer causes compressed models to fail to load.
- Too aggressive quantization creates visible gaps between adjacent parts of a model.
- Feature support varies between tools for morph targets, skinning data and custom attributes, so pipelines need testing.
- Expecting texture savings is a frequent misunderstanding, because images often dominate file size.
In simple terms
Draco works like a ZIP file made especially for 3D shapes. A 3D model is a long list of points and triangles. Draco finds patterns in that list. It writes them down in a much shorter form.
It also rounds numbers slightly, so the shape keeps its look but takes less space. When the file arrives, the viewer unpacks it before showing it. The main benefit is faster loading. The main cost is a little extra work for the device and a tiny loss of precision.
A practical example
A museum publishes a web viewer for a photogrammetry scan of a stone statue. The uncompressed GLB is 48 megabytes, mostly geometry with about 2 million triangles, and visitors on mobile networks often leave before it loads.
The technical artist keeps the original scan as the master file and exports a delivery version with Draco at 14-bit positions, 10-bit normals and 12-bit texture coordinates. Textures are converted separately to KTX 2.0. The viewer is configured with the WebAssembly Draco decoder.
The geometry part shrinks by roughly a factor of eight, and the complete file falls to about 9 megabytes. Close inspection shows no visible difference in the carved details, and average loading time on mobile drops from over 20 seconds to under 5 seconds.