Skip to main content

Geometry compression

Smaller geometry, the same application shape.

Draco compresses triangle meshes and point clouds for delivery. loaders.gl decodes its attributes into common mesh data and can encode compatible data back into Draco payloads.

Compressed geometry

Transport geometry compactly, decode it where it is needed.

Draco represents geometry attributes using specialized compression. The loaders.gl boundary keeps the compressed payload format-specific while exposing decoded attributes through the mesh category.

Geometry

Triangle meshes and point clouds with supported attributes.

Compression

Quantization and prediction reduce delivery size.

Decode

Return Mesh objects or Mesh Arrow tables.

Encode

Write compatible mesh data as Draco binary.

Detailed guide

Draco format and API details

The reference below covers encoded geometry, attributes, compression behavior, worker loading, and writer compatibility.

CharacteristicValue
File FormatDraco
Data FormatMesh, Mesh Arrow table
File Extension.drc
MIME Typeapplication/octet-stream
File TypeBinary
Loader APIsload, parse, parseSync
Loader Worker Thread✅ Yes
Loader Streaming❌ No
Writer APIsencode, encodeSync

Loaders and Writers​

Encodings​

Draco stores compressed mesh and point cloud geometry. It supports triangle meshes and point clouds, and can preserve supported attribute arrays and metadata dictionaries.

Runtime​

DracoLoader and DracoWriter use the official Draco3D 1.5.7 decoder and encoder runtimes. The WebAssembly runtimes are loaded dynamically by default, are also published as package-local assets for workers and offline applications, and can be supplied through options.modules.