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

Support KHR_animation_pointer #505

Open
mklefrancois opened this issue Dec 2, 2024 · 1 comment
Open

Support KHR_animation_pointer #505

mklefrancois opened this issue Dec 2, 2024 · 1 comment

Comments

@mklefrancois
Copy link

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

@syoyo
Copy link
Owner

syoyo commented Dec 2, 2024

You can contribute writing a function to parse string in KHR_animation_pointer.

PR is much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants