question

Jonathan Hall avatar image
Jonathan Hall asked ·

One sub-shader in a mix shader is always blank

I have a mix shader combining together two sub-shaders (also mix shaders) with an alpha map like so.

But when the eye_shader is applied to an object, the area that should be covered by the iris_shader is blank white.

If I apply either one or the other of the two sub-shaders directly to an object, they render as expected.

iris_shader:

eye_background:

The alpha map is a simple transparent png with a black area.

I don't understand how the iris_shader can render as blank in the mix shader when it works fine on its own.

arnoldmaterialmaterialsmix shader
1597669820459.png (26.6 KiB)
1597669873240.png (180.9 KiB)
1597669961443.png (160.5 KiB)
1597669999915.png (177.8 KiB)
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 ·

Here's what I got using a layer shader instead of the mix.

I also changed the shading tree a bit (I used pupil.png for the mix mask, and a color correct to invert it).


eye.v2.ma.zip


layer-mix.png (304.1 KiB)
eyev2ma.zip (16.5 KiB)
1 comment
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.

It works great using the LayerShader with the ColorCorrect to invert the mask, thanks!

Any idea why it works with the LayerShader but not with the MixShader? I've been using MixShaders because they don't require the extra step with the ColorCorrect node.

0 Likes 0 ·
Stephen Blair avatar image
Stephen Blair answered ·

Can you upload a scene?

1 comment
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.

https://easyupload.io/qe76df - zipped with the required textures

0 Likes 0 ·
Lee Griggs avatar image
Lee Griggs answered ·

What happens if you use a .jpg instead?

1 comment
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.

Swapped to using a jpg colour channel, no change.

0 Likes 0 ·

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.