-
Notifications
You must be signed in to change notification settings - Fork 1k
add SPLAT decoder to be able to encode .splat files to .drc files #1097
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any official SPLAT file specification / definition that we could link to here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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::GENERIC
or 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