add SPLAT decoder to be able to encode .splat files to .drc files#1097
add SPLAT decoder to be able to encode .splat files to .drc files#1097patrikant wants to merge 6 commits intogoogle:mainfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Following this PR, I compressed a splat file from 187M to 41M. Could you provide the code for decoding the DRC back to splat? Thanks! @patrikant |
@waveviewer I do not need a local Draco decoder to decode DRC to Splat. So, I haven't customized these files yet, unfortunately. If it's necessary for this PR to be included in the next build, I can do it. |
|
|
||
| namespace draco { | ||
|
|
||
| // Decodes a SPLAT file into draco::PointCloud. |
There was a problem hiding this comment.
is there any official SPLAT file specification / definition that we could link to here?
There was a problem hiding this comment.
I am using the definition by antimatter15: https://github.com/antimatter15/splat
I am using SPLAT files in addition to ply files. Currently, this datatype is not supported by the Draco library. A few months ago, I raised an issue regarding this topic (#1082), and there is another one concerning Gaussian splatting (#1020).
I am aware that SPLAT files are not standardized yet. This version accepts SPLAT files with the following attributes:
I attempted to encode the scale and rotation attributes as
GeometryAttribute::GENERICor custom attributes. However, I encountered some issues with the draco web loader in viewing these attributes. The two "new" attributes could not be decoded correctly. As a result, I am encoding position and scale together, as well as color and rotation. The implementation works perfectly for me.Some examples for the compression using CL 10 and QP 11:
SPLAT file with 33MB -> DRC file with 10MB
SPLAT file with 4.6MB -> DRC file with 1.4MB
SPLAT file with 10MB -> DRC file with 3MB