Layered Shaders don't appear to work with materialX in Arnold. The following error is raised in the attached example scene, and renders black.
[/obj/render/materialx1] no node definition found for connected shader "/obj/shop/crag_layered/standard_surface1"
Is the layer shader not supported?
Sphere001 object .mtlx file a checker through layer to closure, I can call this directly in arnold and it renders perfect. try see for refference ( I made this file outside of houdini
It's not an HtoA-specific issue.
The materialx exporter isn't handling mix_shader or layer_shader, with either one I don't get a working mtlx file.
Is the materialx export issue resolved with Arnold 5.4.0.1 (HtoA 4.3.0)?
Hi Orn, I just tested with HtoA 5.4.0.1 (HtoA 4.3.0) in Houdini 17.5.360, and it appears to still not work on my end.
Hi James. I've identified the issue and logged a bug which we aim to address as soon as possible.
The problem is that the layered standard_surface shaders have an empty type when exported, whereas they should be 'closure' (this only seems to affect closures). If I modify the exported .mtlx file so we have e.g. <standard_surface name="/obj/shop/crag_layered/standard_surface2" type="closure"> then it renders correctly for me.