A video showing how to setup lentil in Maya. The scene file is provided at the bottom of the page.
Select your camera's shape node. In the attribute editor under the Arnold tab, switch the Camera Type
to lentil_camera
.
Set the bidirectional sample multiplier param: bidir_sample_mult. The bokeh samples are decoupled from the AA sample count. A good interactive baseline is around 1-10
, although you might want to increase this when dealing with very small highlights, or decrease it when dealing with larger high luminance areas. Lentil will automatically modulate the sample count based on the screenspace area footprint of the bokeh.
In the render settings window, under the Imager section, create an aiLentilImager
. This will allow feeding back the bidirectionally sampled result into the renderview.
lentil_imager
needs to be the first imager in the imager stack. It cannot accept inputs from other imagers, unlike the default arnold imagers.
A debug AOV lentil_debug
is automatically created. The AOV will show the amount of bidirectional samples per pixel, with a closest filter.
The bidirectional sampling only kicks into action when:
3
.aiLentilImager
has been added.0
.