Changing shadow color and opacity inside shader?

This widget could not be displayed.

Changing shadow color and opacity inside shader?

Anonymous
Not applicable

Hey Arnold Community!

I have a question regarding stylized rendering.

Question: Is it possible to change the shadow color and shadow opacity of an object inside the Arnold shader?

What I want to achive is the following:

1541-shader-shadow-color2-renderman.jpg

Inside of the PxrSurfaceShader you can change the color of the shadow per shader.

I found the possibilty to do this in the Arnold light:

1542-shader-shadow-color3-arnold.jpg

But this would make it quite complicated to have a separate light for every object.

I tried doing it with the aiRaySwitch but did not get how to setup the shadernetwork.
This is my failed attempt, maybe someone can show me how to do it.

1543-screen-shot-2018-05-15-at-25952-pm.png



I am trying to achieve a 2D look and this would help to soften certain objects. For example having a bush and letting the shadow only cast at 20% through the leafs and making it look softer.

Thanks for your time,

Alex


0 Likes
Reply
Accepted solutions (1)
3,267 Views
7 Replies
Replies (7)

lee_griggs
Autodesk
Autodesk
Accepted solution

Here is a scene (ensure Opaque is disabled for the mesh). Password: arnold

1550-rayswitch-shadow.jpg

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes

Anonymous
Not applicable

Thank you @Lee Griggs
That's exactly what I needed! Thank you very much for your help!
Awesome!
Cheers Alex

0 Likes

Anonymous
Not applicable

@
It's so sad that the file is no longer available. Is there even a chance that you will share this file again, sir?

0 Likes

lee_griggs
Autodesk
Autodesk

Here is the scene file.

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes

Anonymous
Not applicable

Perfectly! Thank you so much!

0 Likes

lekanac511
Community Visitor
Community Visitor

Hello. I'm a student learning arnold. Recently I wanted to change shadows of a specific object. So i guess i need to change Material Options. Recently i found what I want at https://answers.arnoldrenderer.com/questions/5304/changing-shadow-color-and-opacity-inside-shader.ht.... But I'm using Arnold HOUDINI HtoA. Kindly Answer my question.....I want Ghibli Style Renders with aiStandard Surface as i wanna to change Shadow Colors of Specific MESH Objects.....my email psriharshagowtham@gmail.com

0 Likes

Stephen.Blair
Community Manager
Community Manager
You do what it shows in the screenshot
Then use the Opacity color in the standard_surface connected to the rayswitch. That will change the color of the object's shadow.


// Stephen Blair
// Arnold Renderer Support
0 Likes