autodesk-forks / MaterialX

MaterialX C++ and Python libraries
http://www.materialx.org/
Apache License 2.0
107 stars 23 forks source link

MATX-303 : Material Node discovery #1323

Closed kwokcb closed 3 years ago

kwokcb commented 3 years ago

Discover Logic.

Configurations Supported.

Refer to images in: https://github.com/materialx/MaterialX/issues/737 for graphical view of configurations tested.

Test Results.

Material nodes discovered which are referenced by materialassigns

Material nodes discover which are within a nodegraph

Material nodes or nodegraphs discovered within a Document This scans at the document level first, and then for each nodegraph scans inside. The difference when scanning at document level is that nodegraph implementations are skipped so NG_material_def_material_1_0/surfacematerial1 is not return.