Reworked Direct Light Sampling Cache (aka DLSC)

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

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Post by marcatore »

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: 171
Joined: Thu Jan 11, 2018 8:52 am
Location: Barcelona, Spain
Contact:

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Post by Asticles »

marcatore wrote: Thu Aug 22, 2019 1:04 pmAvailable!
Great!
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Post by Dade »

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: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Post by Dade »

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: 1969
Joined: Fri May 04, 2018 5:16 am

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Post by lacilaci »

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: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Reworked Direct Light Sampling Cache (aka DLSC)

Post by Dade »

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