This patch adds support for denoising baking results in Cycles. It uses the same underlying algorithm, but with slightly different feature passes.
Currently, the denoising settings from the active RenderLayer are used. I considered adding separate controls for baking denoising, but since there are no separate controls for options like samples etc. either I figured this approach is fine for now.
ToDos:
- Progress bar support, currently it's stuck at 100% until denoising finishes.
- Seam merging. Since the filtering happens in pixel (and therefore UV) space, seams in the UV mapping show up in the final result because pixels in a different UV island will be outside the denoising radius and therefore missed. I have ideas how to avoid this issue, but it's not trivial since the NLM weights are based on patchwise pixel comparison.
This project was funded by Archilogic, thanks for the support!