Add read/write support for Google Draco (.drc) files#15250
Open
Maeyanie wants to merge 1 commit intoprusa3d:masterfrom
Open
Add read/write support for Google Draco (.drc) files#15250Maeyanie wants to merge 1 commit intoprusa3d:masterfrom
Maeyanie wants to merge 1 commit intoprusa3d:masterfrom
Conversation
Currently only writes lossless .drc files. The bits setting exists, but isn't tied into the GUI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
(This screenshot is from OrcaSlicer, but it still demonstrates the model's visual quality despite being ~3% of the size.)
