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

KHR_common_materials lights needs updating from key value pairs to array indices to be consistent with gltf2. #1207

Closed
chipweinberger opened this issue Jan 11, 2018 · 5 comments

Comments

@chipweinberger
Copy link

chipweinberger commented Jan 11, 2018

In this example for instance,

https://github.com/KhronosGroup/glTF/blob/master/extensions/Khronos/KHR_materials_common/schema/examples/lights.json

"ambient_light_id", "directional_light_id", "point_light_id" would be replaced with arrays instead of key value pairs in order to be consistent with Gltf2.

@chipweinberger
Copy link
Author

It appears the extension is for Gltf 1.0 only. Nevermind. The repo should split extensions into 1.0 and 2.0 folders.

@zellski
Copy link
Contributor

zellski commented Jan 11, 2018

There's been copious discussion about what to replace KHR_common_materials with for glTF 2.0, e.g. #947 and #1095, culminating most immediately in #1163.

For lights, specifically, there's #945

@chipweinberger
Copy link
Author

Thanks for getting me up to speed with those links. It's quite helpful.

@chipweinberger
Copy link
Author

chipweinberger commented Jan 11, 2018

In your opinion, are any of them close enough to being ratified that it's worth implementing it now?

@zellski
Copy link
Contributor

zellski commented Jan 11, 2018

I suspect #1163 is likely to go through before anything else, but I'm holding off myself for now. And note that it only covers a sliver of what KHR_materials_common did, focusing on the most obvious use-case; the completely unlit. Not really that helpful for a FBX converter, though, where the author likely generally wanted Phong or Lambert.

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