galloscript / TexGraph-Public

TexGraph public folder content with nodes json descriptors and shaders.
148 stars 17 forks source link

[Suggestion] MaterialX Support #2

Closed jstone-lucasfilm closed 5 years ago

jstone-lucasfilm commented 5 years ago

Hi David,

This looks like a great project, and I was curious if you'd considered using MaterialX for import and export of graphs. Here's a simple example of a MaterialX file representing procedural marble for the Autodesk Standard Surface shader:

https://github.com/jstone-dev/MaterialX/blob/adsk_contrib/dev/resources/Materials/TestSuite/pbrlib/materials/standard_surface_marble_solid.mtlx

And here's the rendered result in the MaterialX viewer (see the upper-left teapot in the top image):

https://github.com/jstone-dev/MaterialX

Keep up the great work, and best of luck with this project!

-Jonathan

galloscript commented 5 years ago

Hello, there are no plans to export in other formats for now, but as it have an open format, any one can write a conversion at JSON / XML level. Thanks for the suggestion.