Direct Light Sampling Cache (aka Light cache part I)

Discussion related to the LuxCore functionality, implementations and API.
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Direct Light Sampling Cache (aka Light cache part I)

Post by Sharlybg »

Ouuu!!!
Photorealism will remain the same?
Yes
In scenes with many light sources, this method should be vastly superior to the current generic light strategy.

This method is also unbiased.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Direct Light Sampling Cache (aka Light cache part I)

Post by Sharlybg »

In scenes with many light sources, this method should be vastly superior to the current generic light strategy.
So with LC1 we remove light strategy completely (no need to keep it) ?
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
juancarlosgzrz
Posts: 6
Joined: Sat Jun 16, 2018 12:38 am

Re: Direct Light Sampling Cache (aka Light cache part I)

Post by juancarlosgzrz »

appleseed uses a many light sammpling strategy, it works pretty nice.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Direct Light Sampling Cache (aka Light cache part I)

Post by Dade »

This is the first rendering with DLSC enabled:

dlsc.jpg

It can do a huge difference with many local lights as expected but the results can be good also in some really simple scene. Disabled:

im2.jpg

Enabled:

im1.jpg

And as a bonus some nice "little spheres anywhere" debug rendering:

debug.jpg
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: Direct Light Sampling Cache (aka Light cache part I)

Post by Dade »

Sharlybg wrote: Fri Jun 15, 2018 10:57 am
In scenes with many light sources, this method should be vastly superior to the current generic light strategy.
So with LC1 we remove light strategy completely (no need to keep it) ?
DLSC is implemented like a new light strategy. It can be selected like any other strategy.
Support LuxCoreRender project with salts and bounties
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Direct Light Sampling Cache (aka Light cache part I)

Post by Sharlybg »

you're reaching striking result. I estimate a jump 8X or 12X (woawou :shock: ).
DLSC is implemented like a new light strategy. It can be selected like any other strategy.
Is there any reason to keep the older light strategy ? Or do you think there are some lighting scenario where older light strategy could perform better ?
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Direct Light Sampling Cache (aka Light cache part I)

Post by B.Y.O.B. »

Sharlybg wrote: Wed Jun 20, 2018 11:56 am Is there any reason to keep the older light strategy ? Or do you think there are some lighting scenario where older light strategy could perform better ?
The DLSC adds to the startup time, in more complex scenes it needs a few seconds to build.
So the older light strategies will still be useful if a scene does not benefit from DLSC and/or if you need very short render times and the startup cost is higher than the payoff.
At least that's my guess.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Direct Light Sampling Cache (aka Light cache part I)

Post by Dade »

B.Y.O.B. wrote: Wed Jun 20, 2018 12:02 pm The DLSC adds to the startup time, in more complex scenes it needs a few seconds to build.
So the older light strategies will still be useful if a scene does not benefit from DLSC and/or if you need very short render times and the startup cost is higher than the payoff.
Yes, for the above reason, it is likely to not to be the default light strategy too.

P.S. it costs memory too (to store the cache).
Support LuxCoreRender project with salts and bounties
marcatore
Donor
Donor
Posts: 463
Joined: Wed Jan 10, 2018 8:04 am

Re: Direct Light Sampling Cache (aka Light cache part I)

Post by marcatore »

Dade wrote: Wed Jun 20, 2018 10:37 am This is the first rendering with DLSC enabled:

dlsc.jpg
Simply fantastic!!!!

My showroom test scene is warming up :)
Asticles
Donor
Donor
Posts: 171
Joined: Thu Jan 11, 2018 8:52 am
Location: Barcelona, Spain
Contact:

Re: Direct Light Sampling Cache (aka Light cache part I)

Post by Asticles »

So, with scenes with only an hdr will not be benefit?
Post Reply