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

Consider using the official object model in the browser #118

Open
javagl opened this issue Aug 3, 2024 · 0 comments
Open

Consider using the official object model in the browser #118

javagl opened this issue Aug 3, 2024 · 0 comments

Comments

@javagl
Copy link
Owner

javagl commented Aug 3, 2024

The jgltf-browser implements some basic browsing functionality within the JSON. For example, right-clicking on an accessor.bufferView, and then jump to that exact buffer view (similar to "Go To Definition") in IDEs. Yes, I did have some ambitions back when I started all that!

The implementation of that is... *clears throat* ... has room for improvement. Right now, it uses some crude lookups using RegExes and Maps.

But... this is just a poor-man's version of JSON pointers. Given the definition of the glTF ObjectModel at https://github.com/KhronosGroup/glTF/blob/main/specification/2.0/ObjectModel.adoc , this could be implemented properly now.

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