Page 1 of 2

Reworked Direct Light Sampling Cache (aka DLSC)

Posted: Thu Aug 22, 2019 9:20 am
by Dade
I have reworked the Direct Light Sampling Cache (DLSC), based on the experience developed with other caches, it should be now faster, artifacts free and fully unbiased.

This is a 64 samples/pixel rendering without DLSC:

without.jpg

and this with:

with.jpg

Like some other cache, it can show different noise patterns at the very beginning of the rendering. This is a 8 samples/pixel rendering with DLSC:

8spp.jpg

and this at 128 samples/pixel:

128spp.jpg

As you can see, the not uniform noise disappear with more samples (i.e. it is unbiased). If you have some really huge noise difference at the start, it is a signal the cache entries are quite inaccurate, just increase the warm up samples to solve the problem. Note, the Blender default warm up value may be too low at the moment, 24-32 should be the bare minimum.

For Reference this is a 8 samples/pixel rendering without DLSC:

8spp-normal.jpg

The improvement is really huge.

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Posted: Thu Aug 22, 2019 9:33 am
by Racleborg
Wow! The difference is really impressive. Thank you :D

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Posted: Thu Aug 22, 2019 9:36 am
by happyboy
Wow! Waiting for the new build to test 8-)

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Posted: Thu Aug 22, 2019 9:37 am
by marcatore
oh- oh-oh... is it already available? :)

I'd like to see a comparison with the previous DLSC... have you something to show in this way?

In any case it seems really a great improvement.

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Posted: Thu Aug 22, 2019 10:46 am
by Sharlybg
Thanks you and good job !

How about the cache pre-computing time ? and also how much setting user need to tweak compared to older cache ?

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Posted: Thu Aug 22, 2019 10:47 am
by Dade
marcatore wrote: Thu Aug 22, 2019 9:37 am oh- oh-oh... is it already available? :)
The binaries should be available in a couple of hours.
marcatore wrote: Thu Aug 22, 2019 9:37 am I'd like to see a comparison with the previous DLSC... have you something to show in this way?
The main problem of the original DLSC was more about artifacts and consistency in providing good results than delivering a really good result (once in a while). The new version may produced renderings with a bit more noise of the original DLSC (especially in some test case) but the rework focus was on fixing artifacts and consistency (more then further reducing noise).

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Posted: Thu Aug 22, 2019 10:50 am
by Dade
Sharlybg wrote: Thu Aug 22, 2019 10:46 am How about the cache pre-computing time ?
It should be faster than the original DLSC because several steps have been removed but the main job of establishing how a much a point is in shadow, it is still there (and it is still an expansive task).

I'm also going to add a persistent fill option for this cache too (... if I haven't already added ... I don't remember).
Sharlybg wrote: Thu Aug 22, 2019 10:46 am and also how much setting user need to tweak compared to older cache ?
Like other caches, it should work without parameters tweaking.

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Posted: Thu Aug 22, 2019 12:31 pm
by Asticles
Amazing! Is this available in the nightly builds?

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Posted: Thu Aug 22, 2019 12:48 pm
by lacilaci
Asticles wrote: Thu Aug 22, 2019 12:31 pm Amazing! Is this available in the nightly builds?
you can watch it cooking here:
https://dev.azure.com/LuxCoreRender/Lux ... uildId=661

but keep in mind that even when it says it's all done, uploading to dailies might take a while longer...

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Posted: Thu Aug 22, 2019 1:04 pm
by marcatore
Available!