Skip to content

Add read/write support for Google Draco (.drc) files#15250

Open
Maeyanie wants to merge 1 commit intoprusa3d:masterfrom
Maeyanie:draco
Open

Add read/write support for Google Draco (.drc) files#15250
Maeyanie wants to merge 1 commit intoprusa3d:masterfrom
Maeyanie:draco

Conversation

@Maeyanie
Copy link
Contributor

@Maeyanie Maeyanie commented Feb 14, 2026

After polishing up write support for the OrcaSlicer version (which has now been included in v2.3.2), I came back and redid the code for PrusaSlicer. This replaces my previous PR, #14793

This Implements Google's Draco (.drc) model format. It supports both read and write, but will currently only write lossless DRC files. The code to write lossy files is there, but it isn't hooked into the GUI yet, since I wasn't sure how you wanted that done. In OrcaSlicer it's done with a setting in Preferences; I can do the same here if you like, but it's less obvious where to put it. It could be added to the Save dialogue, but since the same one is used for all formats, that wouldn't be ideal either. Please let me know what you'd like to see, and I'll work on it.

The main feature of Draco is being extremely space-efficient compared to existing formats. In my testing, DRC could achieve visually-lossless quality at 10% or less (sometimes much less) of the size of STL.
See https://google.github.io/draco/ and https://github.com/google/draco for information.

image

(This screenshot is from OrcaSlicer, but it still demonstrates the model's visual quality despite being ~3% of the size.)
image

Currently only writes lossless .drc files. The bits setting exists, but isn't tied into the GUI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant