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

Is it possible to get the order of encoded points? #584

Closed
lilleyse opened this issue Mar 7, 2020 · 1 comment
Closed

Is it possible to get the order of encoded points? #584

lilleyse opened this issue Mar 7, 2020 · 1 comment

Comments

@lilleyse
Copy link

lilleyse commented Mar 7, 2020

Using the C++ API is it possible to get the order of encoded points?

We have generic attributes that we don't want to store in the draco buffer and we need a way to reorder them in case points get ordered differently during encoding. Ideally the encoder would provide an array of the new point indices.

Workarounds that we're considering:

  1. Use POINT_CLOUD_SEQUENTIAL_ENCODING. We're trying to avoid that.
  2. Add an index attribute alongside position and other attributes, encode points, decode points, get new point indices from the index attribute and reorder non-draco attributes, re-encode without index attribute. I'm not sure if this actually works or is practical.

Is there another way that we're missing?

@lilleyse
Copy link
Author

This was originally a blocker for an early version of CesiumGS/glTF#1 but we changed the design and this issue is no longer relevant.

I'm going to close this issue for now, but am happy to reopen if it's relevant to others.

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

1 participant