Optix denoiser imagepipeline plugin

Discussion related to the LuxCore functionality, implementations and API.
User avatar
Odilkhan Yakubov
Posts: 115
Joined: Fri Jan 26, 2018 10:07 pm
Location: Tashkent, Uzbekistan

Re: Optix denoiser imagepipeline plugin

Post by Odilkhan Yakubov » Sat Aug 01, 2020 8:28 am

:D ohh, my apologize. Thanks.
Allah bless us!

CPU: Core 2 Quad Q6600 @2.4Ghz
GPU: MSI GTX 1060 6Gb GDDR5 192bit
RAM: 3Gb DDR2 800Mhz (too old :( )
OS: Win7 64bit
Blender: 2.90 alpha (E-Cycles version)
LuxCore: v2.4 (official)

juangea
Donor
Posts: 168
Joined: Thu Jan 02, 2020 6:23 pm

Re: Optix denoiser imagepipeline plugin

Post by juangea » Sat Aug 01, 2020 10:49 am

No need to apologize :)

User avatar
B.Y.O.B.
Developer
Posts: 3681
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Optix denoiser imagepipeline plugin

Post by B.Y.O.B. » Sat Aug 01, 2020 12:28 pm

I have tested a "min spp" property in the OptiX denoiser plugin, but it does not completely solve the issue.
For example, if I raise the min spp until the black squares go away in one particular camera view, they may still appear after moving the camera around. I guess we will have to not use the Normal AOV as you suggested until this bug is fixed in OptiX.

User avatar
B.Y.O.B.
Developer
Posts: 3681
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Optix denoiser imagepipeline plugin

Post by B.Y.O.B. » Sat Aug 01, 2020 2:46 pm

First tests with OptiX in the Blender addon: https://youtu.be/xZf1XW9AqRI

Sometimes Blender crashes when ending a render with OptiX, however I don't know yet wether this is caused by the OptiX raytracing part or the denoiser part.

juangea
Donor
Posts: 168
Joined: Thu Jan 02, 2020 6:23 pm

Re: Optix denoiser imagepipeline plugin

Post by juangea » Sat Aug 01, 2020 4:35 pm

Amazing BYOB :D

User avatar
Sharlybg
Donor
Posts: 2152
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Optix denoiser imagepipeline plugin

Post by Sharlybg » Sat Aug 01, 2020 7:06 pm

B.Y.O.B. wrote:
Sat Aug 01, 2020 2:46 pm
First tests with OptiX in the Blender addon: https://youtu.be/xZf1XW9AqRI

Sometimes Blender crashes when ending a render with OptiX, however I don't know yet wether this is caused by the OptiX raytracing part or the denoiser part.
Seriously this is realtime :shock:
As i told years before eevee is almost dead.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA

juangea
Donor
Posts: 168
Joined: Thu Jan 02, 2020 6:23 pm

Re: Optix denoiser imagepipeline plugin

Post by juangea » Sat Aug 01, 2020 7:31 pm

Is it already in the daily build? :)

User avatar
B.Y.O.B.
Developer
Posts: 3681
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Optix denoiser imagepipeline plugin

Post by B.Y.O.B. » Sat Aug 01, 2020 7:41 pm

juangea wrote:
Sat Aug 01, 2020 7:31 pm
daily
Yes, it should work.
In the user preferences, make sure you are using the CUDA backend, with OptiX enabled, and use a CUDA film device.

User avatar
Dade
Developer
Posts: 4498
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Optix denoiser imagepipeline plugin

Post by Dade » Sat Aug 01, 2020 9:02 pm

B.Y.O.B. wrote:
Sat Aug 01, 2020 2:46 pm
First tests with OptiX in the Blender addon: https://youtu.be/xZf1XW9AqRI
I assume, just to be clear, this is Optix with RTX hardware (i.e. a slower render will make the Optix denoiser work harder so RTX indirectly helps too). But older GPUs shouldn't be far from this kind of speed too (in this scene).

P.S. you have RTX accelerating ray tracing and tensor cores accelerating the denoising.
Support LuxCoreRender project with salts and bounties

User avatar
B.Y.O.B.
Developer
Posts: 3681
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Optix denoiser imagepipeline plugin

Post by B.Y.O.B. » Sat Aug 01, 2020 9:32 pm

Yes, this was done on an RTX 2080.

It feels so fluid that I suspect the denoising time is only a few milliseconds.
This is also why I have so far just put in the denoiser plugin into the imagepipeline, meaning the denoiser runs on every film refresh (very often).
This is not doable with a slower denoiser like OIDN, I tested it, the UI becomes extremely laggy and unusuable (which is why I run OIDN in the background in a separate process).
Indeed, we should decide what to do on slower devices: Do we implement a separate code path where Optix is only run every few seconds, in the background? Or do we just say that users with slower hardware should use OIDN instead?

I tend towards the second option (it would save work and maintenance effort in the future).
However, the existing OIDN denoising could be improved, for example by adding the option to denoise in intervals every few seconds instead of only once when the render pauses.

Post Reply