Proposal: glTF extension that holds model-viewer settings #3400
Replies: 1 comment
-
It's totally true and we've discussed this before internally. I'd like to see some use cases, personally. I feel like this would only have value as a shared extension if what it describes is generic enough to be implemented consistently by other viewers. In some sense this is the same issue I have with Apple's My preferred alternative would be something like a web bundle, using standard HTML, CSS, & JS inside a zip to create a complete experience that is easily embeddable via iframe on any web-surface. No format specification necessary; just a pinned MV version (or any other viewer!) and the appropriate assets. That's the only thing I would trust to be long-term stable and completely extensible. What do you think of that alternative? |
Beta Was this translation helpful? Give feedback.
-
So, I've recently explored quite a bit how custom extensions for glTF work, what they can do, etc.
Turns out the principle is easy, the implementation is easy, and it dawned upon me:
Why not solve the "configuration problem" for model-viewer (e.g. specifying which settings per model are right) by including them in a custom glTF extension? This way, each file would bring its own settings.
Cons:
Pros:
This could be a totally custom extension, no need to align with the rest of the industry, but an opportunity to spearhead this kind of in-file "viewer hints". E.g. MODELVIEWER_configuration, or GOOGLE_modelviewer_configuration, or ...
There's a couple of things that need more thought (e.g. HDRs), these could either be as binary in custom bufferViews or referenced by URI (as right now) or use one of the extension proposals for IBL.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions