custom GeometryAttributes for high dimensional point clouds results in error in THREE.DRACOLoader
- Dominant language
- C++
- Stars
- 7.5k
- Forks
- 1.1k
- Avg merge
- 47m
- Merged PRs (30d)
- 1
Description
Hi, I am trying to encode something similar, like [Draco does not decode "high dimensional" point clouds](https://github.com/google/draco/issues/1020). I think I managed to do it with some custom GeometryAttributes, however, I am facing some issues. My ply files look like this:
```ply
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?
Contributor guide
Assessment
This issue has not been assessed yet.