google / draco

Draco is a library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics.
https://google.github.io/draco/
Apache License 2.0
6.5k stars 963 forks source link

How to predict the compressed file size? #710

Open PurpleSwords opened 3 years ago

PurpleSwords commented 3 years ago

Hello, I have a large model and I want to divide it into several data of similar size and compressed by draco. But if I segment the model data first, and then perform draco compression on each model obtained by the segmentation, the final file will be much smaller than my expected value. Therefore, I want to estimate the compressed data size, which can help me better complete the segmentation.

If there is no existing method, which code snippets should I focus on?

Thanks in advance.

ondys commented 3 years ago

Draco doesn't really have any tools for estimating compressed data size. The compressed size is affected by many factors that are not easily estimated from the "raw" data. If the application is not realtime I would suggest to simply encode the geometry to get your "estimate".