You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the relevant spec section is this, saying that if there's only a single output (and no surfacematerial) then that should be used, and it doesn't matter what its name is.
@sunag I think this should become a MeshBasicNodeMaterial, right?
Basically checking here if any surfacematerial was found, and if not, using the first output instead for an Unlit material.
Reproduction steps
Load the above MaterialX with MaterialXLoader
Note it returns zero materials
(Side note: after discussion on the MaterialX slack there are additional cases – not really relevant for this issue, just interesting for the future. This file is also valid and contains two materials (one implicit unlit one and another explicit surfacematerial): two-materials.mtlx.zip)
The text was updated successfully, but these errors were encountered:
The main point why I opened this issue is that loading the nodegraph-only .mtlx I posted above should return a single unlit material, without me having to do anything extra.
A way to access individual nodes might also be useful in the future – some viewers allow „picking“ which node should be displayed as result – but I think that might be possible on the NodeMaterial already?
@sunag would it be possible for you to take a look at this issue? I'm not quite sure what the right approach would be. Would be great to see unlit MaterialX support.
Description
Seems that nodegraphs that don't use a surface model (aka: are unlit) are not supported right now, e.g. this one doesn't work:
The above works fine in https://academysoftwarefoundation.github.io/MaterialX/.
I think the relevant spec section is this, saying that if there's only a single output (and no surfacematerial) then that should be used, and it doesn't matter what its name is.
@sunag I think this should become a
MeshBasicNodeMaterial
, right?Basically checking here if any surfacematerial was found, and if not, using the first output instead for an Unlit material.
Reproduction steps
(Side note: after discussion on the MaterialX slack there are additional cases – not really relevant for this issue, just interesting for the future. This file is also valid and contains two materials (one implicit unlit one and another explicit surfacematerial): two-materials.mtlx.zip)
The text was updated successfully, but these errors were encountered: