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

Export material extension #220

Closed
m0ppers opened this issue Apr 25, 2019 · 2 comments
Closed

Export material extension #220

m0ppers opened this issue Apr 25, 2019 · 2 comments

Comments

@m0ppers
Copy link

m0ppers commented Apr 25, 2019

#180 seems related but rather general and I don't see how the raw serde stuff which is mentioned in the ticket might help?

My problem is I want export a material using a not yet accepted material extension (https://github.com/UnboundTechnologies/glTF/tree/master/extensions/2.0/Vendor/EXT_pbr_attributes).

The extension property of material only seems to accept the pbrGlossiness stuff. I am a rust novice so I might have missed something obvious. Allowing pure json in there would actually already help.

The only bummer I found so far. Love to work with gltf-rs so far \o/

@alteous
Copy link
Member

alteous commented Apr 26, 2019

Hello,

Support for custom extensions is limited at the moment. The reason is due to indecision whether extensions should be imported/exported the same as Extras; that is, raw JSON (RawValue) as you mention. We haven't had much interest in extensions, hence the current lack of support. In future, we could provide a choice of either 'integrated' extensions (as we have now with the KHR_materials_pbrSpecularGlossiness feature) or raw JSON extensions. I'm not sure if having both is possible.

I'm pleased to hear the crate is working for you!

@alteous
Copy link
Member

alteous commented Jul 21, 2019

Closed in favour of #231.

@alteous alteous closed this as completed Jul 21, 2019
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