OpenImageDenoise

Discussion related to the LuxCore functionality, implementations and API.
epilectrolytics
Donor
Donor
Posts: 790
Joined: Thu Oct 04, 2018 6:06 am

Re: OpenImageDenoise

Post by epilectrolytics »

B.Y.O.B. wrote: Mon Feb 04, 2019 12:12 pm Initial support in BlendLuxCore is done. Some UI polishing might follow in the future.
OIDN is the new default denoiser, but you can switch back to BCD.
I think the "remove fireflies only" option in BCD that Dade has provided recently is very valuable.
Is it accessible in BlendLuxCore?
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: OpenImageDenoise

Post by B.Y.O.B. »

epilectrolytics wrote: Mon Feb 04, 2019 12:17 pm I think the "remove fireflies only" option in BCD that Dade has provided recently is very valuable.
Is it accessible in BlendLuxCore?
I think I didn't add it.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: OpenImageDenoise

Post by Dade »

epilectrolytics wrote: Mon Feb 04, 2019 12:14 pm
B.Y.O.B. wrote: Mon Feb 04, 2019 11:10 am I wonder how good OIDN fares vs. BCD when objects are behind glass or seen through a mirror.
Why not render a "deep albedo" like I suggested earlier with this example (right part is the albedo image):
I can do it but would be useful ? The problem we is we don't really know what Oidn needs. For instance, glass is a pure specular material but it has ray split (Reflect Vs Transmit) so it will have quite some noise and may work better with current Albedo while mirror is pure specular with no split and no noise so it may work better with your method. We are going to need some test and input from Intel guys.
Support LuxCoreRender project with salts and bounties
epilectrolytics
Donor
Donor
Posts: 790
Joined: Thu Oct 04, 2018 6:06 am

Re: OpenImageDenoise

Post by epilectrolytics »

Dade wrote: Mon Feb 04, 2019 12:37 pm I can do it but would be useful ?
I guess it would be useful for plain surfaces with mirror or (arch)glass material.
Maybe as an option in the material node.
I think it is useless on curved surfaces and rough specular.

As you said, once BlendLuxCore is out we will do some tests with mirrors and panes.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: OpenImageDenoise

Post by Dade »

I have tracked an usual cut&paste bug in my Oidn plugin code (B.Y.O.B., you were near to catch it) ... so we have now to redo all the tests, the normal buffer was wrong :roll:
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: OpenImageDenoise

Post by B.Y.O.B. »

Ah I see, the albedo was fed into the normal input :lol:
By the way, it seems to me like there is sort of a memory leak: For the first denoising, a bunch of memory is reserved, but it is not freed after denoising. But it is freed before the next denoising, so it doesn't claim more and more.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: OpenImageDenoise

Post by Dade »

B.Y.O.B. wrote: Mon Feb 04, 2019 3:30 pm By the way, it seems to me like there is sort of a memory leak: For the first denoising, a bunch of memory is reserved, but it is not freed after denoising. But it is freed before the next denoising, so it doesn't claim more and more.
It may be a side effect of some internal Oidn behavior: Alpistinho is initializing the Oidn device and filter at the plugin allocation, we could do that for every apply() however it may be slower so I tend to agree with Alpistinho's decision.
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: OpenImageDenoise

Post by B.Y.O.B. »

We should test how long it takes to initialize.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: OpenImageDenoise

Post by Dade »

Second try, hopeful fixed now:

COMP-3x3-fixed.png
Support LuxCoreRender project with salts and bounties
User avatar
lacilaci
Donor
Donor
Posts: 1969
Joined: Fri May 04, 2018 5:16 am

Re: OpenImageDenoise

Post by lacilaci »

Dade wrote: Mon Feb 04, 2019 4:28 pm Second try, hopeful fixed now:


COMP-3x3-fixed.png
Looking good!
Post Reply