Community
Arnold General Rendering Forum
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

One sub-shader in a mix shader is always blank

6 ANTWORTEN 6
GELÖST
Antworten
Nachricht 1 von 7
Anonymous
625 Aufrufe, 6 Antworten

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.

Beschriftungen (4)
6 ANTWORTEN 6
Nachricht 2 von 7
lee_griggs
als Antwort auf: Anonymous

What happens if you use a .jpg instead?

Lee Griggs
Arnold rendering specialist
AUTODESK
Nachricht 3 von 7
Anonymous
als Antwort auf: lee_griggs

Swapped to using a jpg colour channel, no change.

Nachricht 4 von 7
Stephen.Blair
als Antwort auf: Anonymous

Can you upload a scene?



// Stephen Blair
// Arnold Renderer Support
Nachricht 5 von 7
Anonymous
als Antwort auf: Stephen.Blair

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

Nachricht 6 von 7
Stephen.Blair
als Antwort auf: Anonymous

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
Nachricht 7 von 7
Anonymous
als Antwort auf: 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.

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report