Skip to content

parseAnimationsFromArrayBuffer from loaded CZML model? #1

Description

@mhaberler

Hi @richard3d ! thanks for this repo - great help!

I'm using this after a CzmlDataSource (containing a glTF model) is loaded:

      let url = entity.model.uri.valueOf().url;
      animation_set = await AnimationParser.parseAnimationSetFromUri(url);

which works fine but loads the glTF model twice

I tried to avoid double loading, use parseAnimationsFromArrayBuffer() and pass a reference to the buffer as loaded by CzmlDataSource but I do not see an obvious way to do this through the Entity API's entity.model - a ModelGraphics which does not expose Model.gltf per se

do you have a suggestion how to do this?

thanks, Michael

Activity

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