I’m trying to make denoising on Cycles to work on my own application (somewhat based on the standalone app).
Most of what I’ve done so far has been inspired on the Blender source code and the standalone app, but I can’t seem to get denoising to work at all. On the Blender source code, the parameters for the session seem to be very different (the SessionParams and DenoiseParams structures seem to be very different from the one in the standalone app), and the standalone app doesn’t have the options for this.
Still trying to get this to work.
I’ve had some extremely limited sucess by going to the standalone application again (instead of my own application), and adding the following code to the end of options parse:
It seems like the buffer gets corrupted (or the pointer to it overruns the size), but to be honest I don’t understand enough of the whole system to be able to understand the error.
My test was done by pulling the latest version and changing the code as indicated above, no additional changes.
Application is being ran with “…/examples/scene_monkey.xml --samples 1” as parameters.
Does anyone have any idea on what the problem might be? This is driving me nuts, and it’s the only missing part from having a Cycles integration with our CAD product.
As a suggestion, I’d add some command line parameters for denoising on the standalone app to help guide the integration of Cycles into other packages. For other components of the integration I could use the Blender source code as a guide, but this part is very different from Blender.
//turn on the denoiser
options.scene->integrator->set_use_denoise(true);
//see the DenoiserType,any support your device
options.scene->integrator->set_denoiser_type(DenoiserType::DENOISER_OPTIX);