One sub-shader in a mix shader is always blank

One sub-shader in a mix shader is always blank

Anonymous
Not applicable
1,414 Views
6 Replies
Message 1 of 7

One sub-shader in a mix shader is always blank

Anonymous
Not applicable

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

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

7918-1597669873240.png

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

iris_shader:

7919-1597669961443.png

eye_background:7920-1597669999915.png

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.

0 Likes
Accepted solutions (1)
1,415 Views
6 Replies
Replies (6)
Message 2 of 7

lee_griggs
Autodesk
Autodesk

What happens if you use a .jpg instead?

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 3 of 7

Anonymous
Not applicable

Swapped to using a jpg colour channel, no change.

0 Likes
Message 4 of 7

Stephen.Blair
Community Manager
Community Manager

Can you upload a scene?



// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 5 of 7

Anonymous
Not applicable

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

0 Likes
Message 6 of 7

Stephen.Blair
Community Manager
Community Manager
Accepted solution

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).

7944-layer-mix.png


eye.v2.ma.zip



// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 7 of 7

Anonymous
Not applicable

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