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

jgltf-browser is not support glTF Materials Common? #14

Open
cx20 opened this issue Jan 15, 2017 · 3 comments
Open

jgltf-browser is not support glTF Materials Common? #14

cx20 opened this issue Jan 15, 2017 · 3 comments

Comments

@cx20
Copy link

cx20 commented Jan 15, 2017

I tried to display the glTF Materials Common file using jgltf-browser preview release 5.

However, it was all displayed in gray. Is gltf-browser unsupported by glTF-MaterialsCommon?

glTF-MaterialsCommon/Duck.gltf
image

glTF-MaterialsCommon/Box.gltf
image

@cx20
Copy link
Author

cx20 commented Jan 15, 2017

For reference, samples of glTF-MaterialsCommon of other glTF Loader have been added.
https://cx20.github.io/gltf-test/

By the way, Avocado, Barramundi Fish, SmilingFace have no sample of glTF-MaterialsCommon. The absence of the link destination is because the program that automatically generates the sample list does not correspond.

@javagl
Copy link
Owner

javagl commented Jan 15, 2017

The glTF-MaterialsCommon extension is not (yet) supported.

This extension is not trivial to implement. There are different possible approaches, and I do not yet know which one would make most sense.

One could try to generate the required shaders/programs/technique/materials "at runtime", on the fly. This is (as far as I understood) what is currently done in https://github.com/AnalyticalGraphicsInc/cesium/blob/389cb1d3664536c53755b62a297bd96400abaff8/Source/Scene/modelMaterialsCommon.js

I'm working on a different project, that is actually "independent" of JglTF. The goal of this project is to implement the functionality of the OpenGL fixed function pipeline with shaders. I thought that it should be possible to use these shaders to emulate the glTF-MaterialsCommon functionality. But this is still a very vague idea, and I'm not sure whether it will work as expected.

@cx20
Copy link
Author

cx20 commented Jan 15, 2017

I understood the current status.

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

2 participants