how can I add denoiser in OWL? #177
-
I try to copy optix7course's ex11_denoiseColorOnly in owl. And I use DEVICE DeviceMemory in DeviceMemory.h to replace CUDABuffer in optix7course. I use OWLViewer::fbPointer as the inputLayer.data so that the format is OPTIX_PIXEL_FORMAT_UCHAR4. I thought it will run normally. but I get an error code 7800 which is 'OPTIX_ERROR_NOT_SUPPORTED'. I can run ex11 successfully so I wasn't my device's problem. It must be some mistake I make. Variable declarations:
code in render and resize:
and resize:
I want to know where my mistake is..... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Huh. Interesting question. No obvious answer to me at least. One thing that comes to mind is that maybe pixel format uchar4 isn't supported with the rest of the config - one simple test would be to take the optix7course and change that to pixel format uchar4 and see if that throws the same error. The output would then be garbage of course if the pixels are really float4 in that sample - but at least it'd be interesting to see if that still renders (garbage) instead of throwing this error. The only other thing (and hard to judge w/o full source code) is that in the snippets above you say "in resize" and then have a denoiserdestroy in there. you sure you want to destroy the denoiser when you resize? I think you'd only want to resize and reconfig. Third possibility is that some of the buffers in that sample might be host pinned, and the denoiser might only work on device buffers. Note I'm not saying that it will work only with those; just saying that that's something I'd look at with nothing else to go from. If you do have an accessible version of that somewhere it might be easier to look at the full code. |
Beta Was this translation helpful? Give feedback.
Huh. Interesting question. No obvious answer to me at least.
One thing that comes to mind is that maybe pixel format uchar4 isn't supported with the rest of the config - one simple test would be to take the optix7course and change that to pixel format uchar4 and see if that throws the same error. The output would then be garbage of course if the pixels are really float4 in that sample - but at least it'd be interesting to see if that still renders (garbage) instead of throwing this error.
The only other thing (and hard to judge w/o full source code) is that in the snippets above you say "in resize" and then have a denoiserdestroy in there. you sure you want to destroy the denoiser when yo…