question

James Robinson avatar image
James Robinson asked ·

Does HtoA support layer shader and MaterialX? It doesn't appear so...

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?

layer-shader-mtlx-broken.zip

htoaoperator
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Orn Gunnarsson avatar image
Orn Gunnarsson answered ·

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.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

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.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

James Robinson avatar image
James Robinson answered ·
@Orn Gunnarsson

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.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Orn Gunnarsson avatar image
Orn Gunnarsson answered ·

Is the materialx export issue resolved with Arnold 5.4.0.1 (HtoA 4.3.0)?

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Mads Drøschler avatar image
Mads Drøschler answered ·

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


qq.zip (480 B)
Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.