Step 1:
Add a PrmanDenoiseChannelDefine node to create all the DisplayChannels required for the denoise utility.
Step 2:
Add a PrmanDenoiseRenderOutputDefine node to output a multichannel OpenEXR file for the beauty pass. The file contains all the required denoise channels.
Set the renderLocation parameter to the location of your output image. The denoiser expects images to be in the form <NAME>.<FRAME_NUMBER>.exr
(ex. image.1001.exr
). In Katana you can specify the number of digits in the frame number by the number of #s in the filename (ex. image.##.exr
would result in image.01.exr
).
Step 3:
Set pixelfiltermode to importance if you changed it from the default. This is done in PrmanGlobalStatements.
Both the PrmanDenoiseChannelDefine and PrmanDenoiseRenderOutputDefine nodes are macros. You can command-click to see inside these macros and change settings if necessary.
If your pipeline does not support multichannel EXRs, you can use separate RenderOutputDefine nodes to create an output for each channel defined in PrmanDenoiseChannelDefine. Then use $RMANTREE/bin/exrmerge
to combine the AOVs into a multichannel EXR. Use this merged multichannel EXR for the denoise utility. Combined EXR using Katana's RenderOutputDefine's merge will not work with the denoise utility.
On any RenderOutputDefine nodes you create for denoising, the type should be set to "raw" to avoid any post-processing by Katana. Then make sure asrgba is set off so that the channel names align with what the denoiser expects.
See the denoise_teapots.katana example file in RfK's Examples directory to see how to set up denoising. |
There are several options available to denoise your Katana renders. Note that denoising is not supported interactively, so all denoise renders need to be Disk or batch renders.
Create a RenderOutputDefine.
Wire this node to the previous RenderOutputDefine node.
Select script for the type, select primary for the scriptInput, and set the scriptCommand to the following:
$RMANTREE/bin/denoise_batch -o /path/to/directory/for/denoised/images $INPUT |
Finally, render your scene with a disk or batch render.
Render out your images with katana --batch or katana queue. Then run the following command:
$RMANTREE/bin/denoise_batch -o /path/to/directory/for/denoised/images imagename.*.exr |
See the Denoiser Command Line documentation for more information on the settings available.
See the Denoiser UI documentation for more information on the settings available.