这是indexloc提供的服务,不要输入任何密码
Skip to content

Support KHR_animation_pointer #505

@mklefrancois

Description

@mklefrancois

The extension KHR_animation_pointer provides a path to the element to animate, and the path might be like this: /materials/0/pbrMetallicRoughness/baseColorFactor

Unfortunately, parsing such string is rather difficult in tinygltf without a direct access to JSON.

Would it be possible to provide a function, like void* resolvePointerPath(const std::string& pointerPath) which would return a pointer to the element?

This scene from the official glTF-Asset can be used for testing: https://github.com/KhronosGroup/glTF-Sample-Assets/tree/main/Models/AnimatedColorsCube

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions