Disabling the specular visibility of light

kenny_chang
Explorer
Explorer

Disabling the specular visibility of light

kenny_chang
Explorer
Explorer

Is there a way to disable the specular/transmission visibility of an analytic light aside from turning off the spec/trans contribution or light-linking?

For example, I would like to have a quad light not be visible in a mirror but still have specular contribution. I understand that the specular reflection of a light is part of it's specular contribution but I was hoping there's a workaround, similar to how trace sets work with geometry.

I've tried:

1. Turning off specular contribution, but it turns specular rays completely off, not just the visibility of the light in the reflection.

2. Using light-linking, which again effectively disconnects the light from the mirror

3. Trace sets: do not seem to work with lights, only geometry.

4. One workaround is using mesh lights and creating a trace set with the geometry and add it to the trace set for the mirror.

(On a similar topic, mesh light does not have transmission contribution attribute, is this intentional?)


I want to avoid rendering multiple passes and/or compositing as well as using LPE's.


Any details on how best to go about setting this up would be great.

Thanks,

Kenny

0 Likes
Reply
1,065 Views
6 Replies
Replies (6)

lee_griggs
Autodesk
Autodesk

Have you tried the ray_switch shader? Also, why are you doing this?

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes

kenny_chang
Explorer
Explorer

Hi Lee,

I need a light emitting a lamp without seeing the light in the reflection. Ideally an analytic light would be preferable over a mesh light.

I should have mentioned that I tried the aiRaySwitch with lights. Here are the results:

1. Skydome with aiRaySwitch: works with camera and shadow rays only.

2. Analytic lights with aiRaySwitch: works with camera ray only, but light emission is killed.

Is this the proper workflow for using aiRaySwitch with lights? If so, are these the limitation/expected behavior?

Best,

Kenny

Specs: Linux Centos 7, Maya 2018.5, MtoA 4.0.1 Arnold Core 6.0.1.0

0 Likes

kenny_chang
Explorer
Explorer

Hi Lee,

Just want to get clarification if the aiRaySwitch limitation for lights is the expected behavior?

The aiRaySwitch with a skydome only the camera and shadow rays work.

The aiRaySwitch with a quad light only the camera ray works and the light emission is effectively killed.

Thanks,
Kenny

0 Likes

lee_griggs
Autodesk
Autodesk

I don't know how you are using it? Can you post screenshots or even better a simple scene somewhere?

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes

kenny_chang
Explorer
Explorer

Hi Lee,

Attached is a simple scene with a quad light with a texture mapped to it. The texture is fed through the aiRaySwitch before connecting to the color parameter of the light.

lightsWithRaySwitch.zip

Ref image 1

Default setup without aiRaySwitch

7533-selection-022.png

Ref Image 2

With aiRaySwitch, the camera ray for the quad light is working, but the shadow ray doesn't, and the light contribution is effectively killed.
7534-selection-023.png

0 Likes

lee_griggs
Autodesk
Autodesk

Hi Kenny, this from the backroom boys:

"because of the way the sampler works, it can't assume that the shading will change depending on how the light is being viewed. if he wants the light to be invisible to specular, there are visibility controls for that on the light itself".

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes