Community
Arnold for Cinema 4D Forum
Rendering with Arnold in CINEMA 4D using the C4DtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Layer color replacement

8 REPLIES 8
Reply
Message 1 of 9
pleiada
457 Views, 8 Replies

Layer color replacement

I am trying to mix two standart shaders with different layer modes, but the new Arnold system doesn't provide Layer color anymore. Now the option is layer_rgba and layer_shader. But in layer shader there is no option for layer mode and alpha . How to resolve this problem?

https://docs.arnoldrenderer.com/display/AFCUG/Layer+Color

Tags (1)
Labels (1)
8 REPLIES 8
Message 2 of 9
Stephen.Blair
in reply to: pleiada

How about mix shader ?



// Stephen Blair
// Arnold Renderer Support
Message 3 of 9
pleiada
in reply to: Stephen.Blair

There is no possibility to make overlay , screen etc mode or alpha operation

Message 4 of 9
madsd
in reply to: pleiada

you can use OSL to add in the blend types you want between 2 inputs.
https://github.com/ADN-DevTech/3dsMax-OSL-Shaders/blob/master/3ds%20Max%20Shipping%20Shaders/Composi...

Message 5 of 9
Anonymous
in reply to: pleiada

@Mads Drøschler
OSL Composite does not support closure connection !

Message 6 of 9
madsd
in reply to: Anonymous

I thought this was shade space.

Message 7 of 9
Stephen.Blair
in reply to: pleiada

Right, standard surface returns a closure, not a color. So if you want to use those types of layer operations, you have to use layer_rgba with RGB inputs.

00:00:00  1082MB WARNING |  unable to connect standard_surface() to osl(param_TopRGB) - types are not compatible (CLOSURE to RGB)
00:00:00  1082MB WARNING |  unable to connect standard_surface() to osl(param_BottomRGB) - types are not compatible (CLOSURE to RGB)




// Stephen Blair
// Arnold Renderer Support
Message 8 of 9
pleiada
in reply to: Stephen.Blair

thats the point, it used to be that layer color could mix both rgb and closure. I am watching different tutorials now, where it is shown how to make shaders and in most of them they are using layer color

Message 9 of 9

This has changed in Arnold 5 when closures were introduced. Before that you could mix a texture with a surface shader, but not any more. It has technical reasons, don't want to go into details, but now _rgba shaders are used for textures, _shader shaders for surfaces.

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

Post to forums  

Autodesk Design & Make Report