I have no control over the reflections and shadows of the ray_switch_shader

I have no control over the reflections and shadows of the ray_switch_shader

17350757759
Explorer Explorer
901 Views
8 Replies
Message 1 of 9

I have no control over the reflections and shadows of the ray_switch_shader

17350757759
Explorer
Explorer

I have no control over the reflections and shadows of the ray_switch_shader 1625229751628.png1625229758506.png

How can I control the shadow and reflection of an object separately

0 Likes
Accepted solutions (1)
902 Views
8 Replies
Replies (8)
Message 2 of 9

lee_griggs
Autodesk
Autodesk

You need to use a trace_set. There is a scene file here:

https://docs.arnoldrenderer.com/display/A5AFCUG/Trace+Set

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

17350757759
Explorer
Explorer

Thank you but this scenario doesn't contain the example I was looking for

0 Likes
Message 4 of 9

Stephen.Blair
Community Manager
Community Manager
Accepted solution

You cannot use rayswitch and trace sets together like that.

rayswitch is for rays that hit an object. trace sets is for rays traced from an object.

You can use trace sets to control what objects are visible in the reflections.
Put a trace set on the plane. Then for one or more of the spheres, set the trace set. That will control which spheres are visible in the reflection.




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

17350757759
Explorer
Explorer

Thank you, I know how the trace set is used, but I don't understand how the example in this Arnold help document does it, or is this example wrong?
https://docs.arnoldrenderer.com/display/A5AFCUG/Trace+Set

0 Likes
Message 6 of 9

Stephen.Blair
Community Manager
Community Manager
As I said, you cannot use trace sets with rayswitch like that. The user guide is wrong. That won't work.


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

17350757759
Explorer
Explorer

Thank you very much. I've been trying for a long time and I can't do it

0 Likes
Message 8 of 9

Stephen.Blair
Community Manager
Community Manager
Oh, I forgot to say that trace sets do not control shadow rays. At least it didn't work in my simple test.


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

17350757759
Explorer
Explorer

Thank you. I think I get it


0 Likes