Draco is an open-source compression library from Google for 3D mesh data. In glTF files, the KHR_draco_mesh_compression extension makes the geometry much smaller to download.

Discuss your product rangeTry the demos

What Draco compresses

Draco works on the geometry of a model. Geometry is the set of points, connections and faces that make up its shape. It also covers attributes such as normals, colours and texture coordinates. Normals tell a surface how to catch light. Texture coordinates tell it where to place an image.

Draco comes from Google’s Chrome Media team, and it is open source. It includes a JavaScript decoder that web viewers can run. In glTF, the extension is named KHR_draco_mesh_compression. Its specification is published by Khronos alongside the rest of the format.

Draco handles meshes and point clouds. In a glTF file it compresses the mesh data, while textures and materials stay as they were. If images make up most of the weight, pair it with texture compression. Check the file breakdown first to see which part dominates.

  1. Dense 3D mesh
  2. Draco encodes geometry
  3. Smaller glTF download
  4. Decoded in the viewer
Draco shrinks the mesh for download, and the viewer decodes it before drawing.

How the decoder works in the browser

A Draco-compressed mesh is smaller on the server and across the network. The viewer must decode it before it can draw the model. That decoding runs on the shopper’s device, so it takes some processing time when the page loads.

Once decoded, the mesh behaves like any other mesh. Materials, animation and interaction all work in the same way. The saving is therefore in the download, not in the way the model is drawn on each frame. This distinction matters when you explain results to a client.

The wider file structure is set out in the GLB guide, which explains where compressed geometry sits inside the file.

Why it matters for configurators

A product configurator loads a model before a shopper can see anything useful. Smaller geometry means the first view appears sooner. That matters most on mobile networks, where every megabyte is slower to arrive.

Draco is useful when a model has many dense parts. For example, a chair with fine stitching or a watch with many small links can produce a heavy file. A lower file size can keep the first load within a reasonable time. Always test that load on a phone, not only on a desk computer.

A configurator also needs the compressed file to decode quickly on a mid-range phone. I judge a setting by how the first view feels on that device, not by the file size alone.

Desk lamp with a linen shade and dark base, rendered in the Three.js configuratorOpen a model in the free GLB viewerLoad a .glb or self-contained glTF file and inspect it in your browser. The file stays on your device. The lamp shown comes from the Three.js demo.

Precision and quantisation

Draco often uses quantisation. Quantisation stores numbers with fewer bits, which is a common way to make geometry data smaller. The trade-off is precision. Positions and normals can lose a little accuracy during the process, and the amount of loss depends on the settings you choose.

Compare the two versions side by side before you choose a setting. Look closely at sharp edges, small text printed on a surface and curved panels. These areas usually show any loss first, so they make a good test case for each product.

Draco is not the only route to a smaller file. Meshopt and simple mesh cleanup can also reduce weight. Test each route against the same master file so that the comparison stays fair.

How I check a Draco file

I treat Draco as a release step, not an editing step. I keep the uncompressed model in the project at all times. When a model is ready, I export the compressed copy and check it against the master in the same viewer. The comparison should use the same camera angle, lighting and material set.

Next I load the compressed file on a phone and watch the first view appear. The download should be smaller and the first frame should arrive sooner. If either result fails to appear, I review the encoder settings before I move on to the next model.

Quantisation also interacts with other data. Texture coordinates stored at lower precision can shift an image slightly. I check any label or logo that sits close to a seam on the model.

Meshopt compression

Meshopt compression is the other geometry compression choice for glTF files, alongside Draco. It is based on the meshoptimizer library and is written into the file as the EXT_meshopt_compression extension. Rather than working only on mesh shape, it targets the data inside a glTF buffer: geometry, morph targets and animation, and other numeric data stored in buffer views. That helps when a model carries a lot of numbers beyond its shape.

A lightweight decoder restores the data at run time, before it is sent to the GPU. As with Draco, the gain is a smaller download and a faster first view, not a higher frame rate. The glTF Transform documentation describes the decoder and encoder options in detail, and the meshopt documentation highlights fast runtime decompression as a key strength.

Meshopt or Draco

  • Check which extensions your viewer and tools support first. Draco is widely known across web viewers, including three.js.
  • Pick one method for each mesh, and ideally one for the whole product line, so every developer and tool follows the same rules. Mixed methods make problems harder to trace later.
  • Compare file size, first view and visible detail on your own models, then choose the method your loader and toolchain handle most reliably. Check the file breakdown too: the split between geometry and textures decides where the real savings come from.

Lossy, so compress last

The glTF Transform documentation describes meshopt compression as lossy, and repeated compression and decompression loses precision each time. Keep the order fixed: clean the model, resize or bake the textures, apply compression, then test the final file in every viewer you support. Always produce the compressed copy from the uncompressed master, never from an earlier compressed file, so the loss does not compound.

The loss is not always visible. A small change in a hidden part may pass unnoticed, while a change on a sharp label or a polished edge is far easier to see, so check the visible areas first. According to the glTF Transform documentation, the gltfpack tool can apply meshopt compression, and glTF Transform’s own optimize command takes –compress meshopt (see optimise glTF for the web). Run either as a build step, so the result is repeatable and easy to hand over.

Pitfalls

  • Forgetting that the server can also compress the file with gzip or brotli, and not testing the combined size.
  • Skipping the decoder check. Confirm the viewer supports EXT_meshopt_compression before launch.
  • Trusting a desktop test. I look at the first view on a throttled connection and on a phone before I accept a setting, and the page should show a loading state while the file arrives.
  • Expecting compression to clean the model. Stray data in a messy model is still stored in the file afterwards, so start from well prepared 3D models.

Common mistakes

  • Compressing the only copy of a model. Keep the original file.
  • Assuming Draco always helps. Check the saving on each model, because a small file may gain little.
  • Forgetting to test the decoder path in every viewer you support.

Draco is one step in a wider model preparation process. It cannot fix a badly built mesh, so clean the geometry first and compress it last.

  • glTF: glTF is an open standard for 3D models, maintained by the Khronos Group.
  • KTX2 textures: KTX2 is a container format for textures, the images that give 3D surfaces their colour and detail.
  • Meshopt compression: Meshopt compression shrinks glTF geometry, morph targets and animation data.
  • UV mapping: UV mapping is the process of unwrapping a 3D model's surface onto a flat 2D plane.
  • Texture atlas: A texture atlas is one image that holds several smaller textures.
  • Level of detail (LOD): Level of detail, or LOD, means keeping several versions of the same model at different polygon counts.
  • Draw calls: A draw call is a request from the CPU to the GPU to draw one mesh with one material.
  • Instancing: GPU instancing draws many copies of one mesh in a single draw call.
  • Baked lighting: Baked lighting calculates light ahead of time and stores the result in a texture, called a lightmap.
  • Tone mapping: Tone mapping converts the wide range of light values in a 3D scene into the narrower range a screen can show.

Browse all the definitions in the 3D commerce glossary.

Common questions

Is Draco lossy?

Draco can be lossy. Its quantisation step stores positions and normals with fewer bits, which lowers precision. The amount of loss depends on the encoder settings you choose. Compare the result with the original before you publish the model to a shop.

Does Draco make a model render faster?

Not directly. Draco reduces the download size, but the viewer must still decode the mesh before it can draw it. The main gain is a faster first load, especially on slow connections. Frame rate depends on other factors, such as draw calls and materials.

Can I use Draco with KTX2 textures?

Yes. Draco compresses geometry, while KTX2 compresses textures, so they solve different parts of the file. Check that your viewer loads both extensions before you rely on them together. Test the combined file on a real phone as well as a desktop.

Discuss your product rangeTry the demos

Part of the 3D commerce glossary by Niall Arnfield. Published 15 October 2026.

For the full compression workflow, see how to optimise glTF for the web.