I am attempting to incorporate the OptiX denoiser with a non-OptiX based renderer.
I’ve modified the optix_10 introduction example, by removing all of the raygeneration.cu kernel code, reading in the image and mapping it to the m_bufferOutput global variable which acts as input to the denoiser, and then continuing on with the same code as in the examples to denoise.
I’ve used the utility functions that come with the examples to output the buffers to png. I’ve outputted the both the non-denoised buffers and the denoised one, and the images are identical. Given that the denoised buffer is being filled up with the image, I would think that that I’m skipping some step and the denoising step is not being applied (although given that the buffer has been filled, this seems odd), so I’ve formulated these questions:
Although I’m simply assigned the denoiser input buffer the image I need, is there anything else I would need to do for the denoiser to work on non-Optix generated data?
Given that the image I’m providing is not a HDR image, would I need to set the denoise hdr flag to 0 to, or would it not be an issue for it to be enabled but given a LDR image?
In the examples, you’re blending the denoised image with the original image, is there a benefit to this?
Thank you very much!