Skip to content

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

Description

@lilleyse

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?

Activity

  1. lilleyse commented on Apr 29, 2020

    @lilleyse
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions