![Stl file size reducer](https://knopkazmeya.com/23.jpg)
In addition to the command-line tools, Draco also supports some nice browser integrations. Files that are smaller (few MBs) tend to do a bit worse. Modelīoth models were quite compressible–especially the Dragon model.Īnecdotally, I’ve found that most files that are at least tens of MBs are able to be compressed to around 5% of the original file size. The below table summarizes the compression observed when compressing these models using the default Draco encoder settings. I downloaded two 3D model files from the Stanford 3D Scanning Repository.
![stl file size reducer stl file size reducer](https://i.etsystatic.com/15061748/r/il/49a450/2416531369/il_1140xN.2416531369_6t8b.jpg)
To give an idea of how well Draco can compress files, let’s look at few examples. In general, most projects can set quantization values of about 14 without any noticeable difference in quality. It is up to your project to decide how much deviation it will tolerate.
![stl file size reducer stl file size reducer](https://files.cults3d.com/uploaders/15472246/illustration-file/5936f9d0-0cff-4fc4-b446-d31ce463af06/Unbenanntes_Projekt_15_large.jpg)
In general, the more you quantize your attributes the better compression rate you will get. A value of 0 will not perform any quantization. The specified value is the number of bits that Draco will use to quantize different attributes. It can be controlled via the qp flag (e.g., -qp 14). Draco’s documentation states that the compression level turns on/off different compression features, but it doesn’t go into detail about what features this includes, or when they are turned on/off.Īnother knob you can control is something called the quantization parameter. It can can vary from 0 to 10, but the default is 7. This level can be set via the cl command-line flag (e.g., -cl 8). There are a few notable command-line options that control how the input file is compressed. Note: Under the hood, it seems that Draco switches between the lossy, but efficient, Edgebreaker algorithm and a different compression algorithm, depending on how it is run. Losslessĭraco compression can be both lossy or lossless, depending on the input file and compression settings. draco_decoder -i myfile.drc -o Compression: Lossy vs. The above will generate a compressed myfile.drc. If your 3D model files are in a different format, you’ll have to convert them before using Draco. Using Dracoĭraco supports compressing OBJ and PLY files.
#Stl file size reducer install
Note: I installed cmake on my Mac via Homebrew ( brew install cmake).Īfter running make, you should have draco_encoder and draco_decoder binaries that you can run from your shell. Run cmake path/to/local/draco-repository.To use the Draco command-line tools on Mac OS, I did the following: The GitHub README provides installation and execution instructions for different platforms.
![stl file size reducer stl file size reducer](https://i.pinimg.com/originals/e0/47/1a/e0471a1c01ad95db0a21b94c0da11d9b.jpg)
It’s open-source and available on GitHub. Installing Dracoĭraco was created by the Google Chrome media team. In this post, I’ll give a quick rundown of installing and using Draco, then walk through an experiment that demonstrates how well it can compress 3D model files. In fact, it has worked so well it’s hard to believe. Then we discovered Draco.ĭraco is an open-source library for compressing and decompressing 3D mesh data. We initially tried using standard compression approaches (e.g., gzip, 7-Zip, etc.) and were able to make some progress, but even the compressed files were still pretty large. The file sizes for 3D models can often be very large, so compressing the files was a requirement. My current project uses 3D model data, and my team was looking for an efficient way to upload this data to our server. This is, in part, due to the rise in popularity of things like augmented reality and 3D printing. Historically used for CAD and video games, 3D computer models are working their way into the mainstream.
![Stl file size reducer](https://knopkazmeya.com/23.jpg)