RenderKit / oidn

Intel® Open Image Denoise library
https://www.openimagedenoise.org/
Apache License 2.0
1.78k stars 164 forks source link

NaN and Inf pixels blowing up #210

Open youreacoder opened 5 months ago

youreacoder commented 5 months ago

Hey !

We are using OIDN to directly denoise our renders (Houdini Karma), but whenever an inf pixel happens, the OIDN tries to create the gradient between its value and the rest of the image's pixels - creating huge glitch-like white areas like here : Zrzut ekranu 2024-04-09 152250

Do you think there would be a way of making OIDN skip these kind of pixels, and potentially even fill them with surrounding pixels average data ?

Cheers!

atafra commented 5 months ago

Hi. It's currently not possible to make OIDN ignore such extremely high values. This should be fixed on the rendering side. Enabling radiance clamping in the renderer should completely fix this issue.