Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

One sub-shader in a mix shader is always blank

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
jh17979
307 Views, 6 Replies

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

Labels (4)
6 REPLIES 6
Message 2 of 7
lee_griggs
in reply to: jh17979

What happens if you use a .jpg instead?

Lee Griggs
Arnold rendering specialist
AUTODESK
Message 3 of 7
jh17979
in reply to: lee_griggs

Swapped to using a jpg colour channel, no change.

Message 4 of 7
Stephen.Blair
in reply to: jh17979

Can you upload a scene?



// Stephen Blair
// Arnold Renderer Support
Message 5 of 7
jh17979
in reply to: Stephen.Blair

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

Message 6 of 7
Stephen.Blair
in reply to: jh17979

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
Message 7 of 7
jh17979
in reply to: Stephen.Blair

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report