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

GLTF Import - Metadata support #167

Closed
dpasukhi opened this issue Nov 20, 2024 · 0 comments · Fixed by #184
Closed

GLTF Import - Metadata support #167

dpasukhi opened this issue Nov 20, 2024 · 0 comments · Fixed by #184
Assignees
Labels
1. Data Exchange Import/Export or iterating of the CAD data 2. Enhancement New feature or request 5. Internal

Comments

@dpasukhi
Copy link
Member

dpasukhi commented Nov 20, 2024

Category

Data Exchange

Description

Implementing metadata support for GLTF format extends the functionality.
New metadata needs to be presented as a array of "key-value" attributes.
For the GLTF format there are a few ways to store metadata.
The easiest way to store them in the "nodes" section with "extras" section.
Some details from the forum by gkv311 n: https://dev.opencascade.org/node/87550#comment-25554

For the moment, RWGltf_CafReader will read"extras" within "asset" section of the file (e.g. as metadata for entire file) when 'file info' string-string map is passed to Perform() method.

For reading some metadata within node elements (if this is what you are talking about), the glTF reader has to be improved. Note that XCAF document stores such metadata in form of 'named data' attributes, so that glTF reader would better fetch information from there.

The way how to store metadata within glTF file is unclear, though. "extras" sections looks like the most simplest approach, but with unclear compatibility across readers and writers. There are also cumbersome extensions like KHR_xmp and its successor KHR_xmp_json_ld, which are rather more complex to implement.

File samples can be found by the next search request: https://github.com/search?q=path%3A*.gltf+extras&type=code&ref=advsearch

Some discussion:
KhronosGroup/glTF#1387

Use Case

Importing metadata, mirror of #79

Benefits

Full metadata support

Additional Context

Duplicate of https://tracker.dev.opencascade.org/view.php?id=33850

@dpasukhi dpasukhi added 2. Enhancement New feature or request 1. Data Exchange Import/Export or iterating of the CAD data labels Nov 20, 2024
@dpasukhi dpasukhi moved this from Todo to Analyzing in Maintenance Dec 5, 2024
@dpasukhi dpasukhi moved this from Analyzing to In Progress in Maintenance Dec 8, 2024
@dpasukhi dpasukhi linked a pull request Dec 10, 2024 that will close this issue
@dpasukhi dpasukhi moved this from In Progress to Done in Maintenance Dec 16, 2024
@dpasukhi dpasukhi closed this as completed by moving to Done in Maintenance Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. Data Exchange Import/Export or iterating of the CAD data 2. Enhancement New feature or request 5. Internal
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants