Reworked Direct Light Sampling Cache (aka DLSC)

Discussion related to the Engine functionality, implementations and API.
marcatore
Posts: 292
Joined: Wed Jan 10, 2018 8:04 am

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Post by marcatore » Thu Aug 22, 2019 1:29 pm

As BYOB is absent, this new DLSC is available just downloading the last daily build or we have to wait BYOB to have in BlendLuxCore?

Asticles
Donor
Donor
Posts: 151
Joined: Thu Jan 11, 2018 8:52 am

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Post by Asticles » Thu Aug 22, 2019 2:07 pm

marcatore wrote:
Thu Aug 22, 2019 1:04 pm
Available!
Great!
Salvador Ureña

User avatar
Dade
Developer
Developer
Posts: 2907
Joined: Mon Dec 04, 2017 8:36 pm

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Post by Dade » Thu Aug 22, 2019 3:24 pm

marcatore wrote:
Thu Aug 22, 2019 1:29 pm
As BYOB is absent, this new DLSC is available just downloading the last daily build or we have to wait BYOB to have in BlendLuxCore?
Yes, aside from some low default value, it should work fine.
Support LuxCoreRender project with salts and bounties

User avatar
Dade
Developer
Developer
Posts: 2907
Joined: Mon Dec 04, 2017 8:36 pm

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Post by Dade » Sat Aug 24, 2019 7:27 am

DLSC now supports persistent cache on file. It works like other caches, it can be enabled with the following property:

Code: Select all

lightstrategy.persistent.file = cache.dlsc
and can be used to share the cache across frames of a fly-trough animation.
Support LuxCoreRender project with salts and bounties

User avatar
lacilaci
Donor
Donor
Posts: 1519
Joined: Fri May 04, 2018 5:16 am

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Post by lacilaci » Sat Aug 24, 2019 10:21 am

Just for clarification.
This is for large amount of emitters and other situations don't benefit from this?
Also this is not intended in the future to become default light strategy replacing logpower/power?

User avatar
Dade
Developer
Developer
Posts: 2907
Joined: Mon Dec 04, 2017 8:36 pm

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Post by Dade » Sat Aug 24, 2019 1:13 pm

lacilaci wrote:
Sat Aug 24, 2019 10:21 am
This is for large amount of emitters and other situations don't benefit from this?
It is useful as soon as you have more than one light source and the light sources illuminated area doesn't overlap a lot. For instance, this is a rendering with 4 spot lights and default light strategy, 8 samples/pixel:

power.jpg

and this with enabled cache:

cache.jpg

As you see, the difference is noticeable even with only 4 light sources.

If the 4 spot lights mostly overlap is less useful. For instance, it is likely to be useless for Sun+Sky in an outside scene because both light sources overlap a lot. However, as soon as you introduce a few local lights (i.e. street lamps, room lamps, etc.), it start to be useful again.
lacilaci wrote:
Sat Aug 24, 2019 10:21 am
Also this is not intended in the future to become default light strategy replacing logpower/power?
Yes, it is not intended because it requires a (not trivial) pre-processing phase.
Support LuxCoreRender project with salts and bounties

Post Reply