autodesk-forks / MaterialX

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

Baking does not handle space transform nodes which are part of a nodedef #1245

Open bernardkwok opened 3 years ago

bernardkwok commented 3 years ago

When baking a given node, if that node has a graph implementation which includes any kind of "space" transformation it is not detected and the bakeed image can connect to the downstream input but not preserve the "space" transformation.

One notable example is a normalmap node. If connected in a upstream graph then this will work (if it's the first node for now). If the upstream node is a nodegraph using a normalmap then it is not detected.

The logic is to preserve the transform node and bake upstream from it.