autodesk-forks / MaterialX

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

Add NodeGraph "Flattening" Utilities #920

Open bernardkwok opened 4 years ago

bernardkwok commented 4 years ago

This is a WIP proposal for how to provide utilities for "flattening" graphs within MaterialX.

Criteria:

Note that this flattening logic is complimentary to existing image "baking" utilities by adding baking a the "action".

Note that flattening logic can be hooked into "reference" implementation generation as well (currently no implementations are output for nodegraph implementations).

bernardkwok commented 3 years ago

Note that #1013 adds in a predicate for selective flattening, but still needs to start from a nodegraph (not node).