Skip to content
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

custom GeometryAttributes for high dimensional point clouds results in error in THREE.DRACOLoader #1082

Open
patrikant opened this issue Sep 18, 2024 · 1 comment

Comments

@patrikant
Copy link

patrikant commented Sep 18, 2024

Hi, I am trying to encode something similar, like Draco does not decode "high dimensional" point clouds. I think I managed to do it with some custom GeometryAttributes, however, I am facing some issues. My ply files look like this:

format ascii 1.0
element vertex 332185
property float x
property float y
property float z
property float scale_0
property float scale_1
property float scale_2
property uchar f_dc_0
property uchar f_dc_1
property uchar f_dc_2
property uchar opacity
property uchar rot_0
property uchar rot_1
property uchar rot_2
property uchar rot_3
end_header

I tried to add additional GeometryAttributes for scale and rotation. I can encode the file and also decode it locally. However, decompiling on the web with Javascript does not work.
Here I get an error:
THREE.DRACOLoader: Decoding failed: Failed to decode point attributes.
Something in draco.Decoder() does not fit here, the error comes from the line:
decodingStatus = decoder.DecodeBufferToPointCloud( decoderBuffer, dracoGeometry );
Any ideas on how or where I could change the Draco decoder to add these GeometryAttributes`? or what could be my error?

@zihanzheng-sjtu
Copy link

I have the same question, how or where I could change the Draco decoder to add these GeometryAttributes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants