Direct Light cache: how to avoid splotches?

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Direct Light cache: how to avoid splotches?

Post by Dade »

lacilaci wrote: Mon Dec 03, 2018 3:06 pm Isn't this always the same bug? I mean visually it always looks like the MIS issue with caching, or is it something different?
Only if it is glossy and I asked before (posting.php?mode=quote&f=4&p=8053#pr7607) to redo the test with mate material so I assume the above rendering is showing a different problem :?:
Support LuxCoreRender project with salts and bounties
User avatar
lacilaci
Donor
Donor
Posts: 1969
Joined: Fri May 04, 2018 5:16 am

Re: Direct Light cache: how to avoid splotches?

Post by lacilaci »

Dade wrote: Mon Dec 03, 2018 4:09 pm
lacilaci wrote: Mon Dec 03, 2018 3:06 pm Isn't this always the same bug? I mean visually it always looks like the MIS issue with caching, or is it something different?
Only if it is glossy and I asked before (posting.php?mode=quote&f=4&p=8053#pr7607) to redo the test with mate material so I assume the above rendering is showing a different problem :?:
Well there's also the other issue which looks a lot like this one, when you use heavy clamping.. Remember? I think it's always the same thing going on, just very visible with heavy clamping and/or very rough reflections + multiple light sources.
User avatar
lacilaci
Donor
Donor
Posts: 1969
Joined: Fri May 04, 2018 5:16 am

Re: Direct Light cache: how to avoid splotches?

Post by lacilaci »

And what's up with the spot made of bright pixels here? Related?
Attachments
untitled_DLCS.jpg
matte_splotches.blend
(1.02 MiB) Downloaded 156 times
untitled.jpg
marcatore
Donor
Donor
Posts: 463
Joined: Wed Jan 10, 2018 8:04 am

Re: Direct Light cache: how to avoid splotches?

Post by marcatore »

Dade wrote: Mon Dec 03, 2018 4:09 pm
lacilaci wrote: Mon Dec 03, 2018 3:06 pm Isn't this always the same bug? I mean visually it always looks like the MIS issue with caching, or is it something different?
Only if it is glossy and I asked before (posting.php?mode=quote&f=4&p=8053#pr7607) to redo the test with mate material so I assume the above rendering is showing a different problem :?:
I sent you a PM with the scene.
About the carpet on the floor I confirm I used a matte material
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Direct Light cache: how to avoid splotches?

Post by Dade »

lacilaci wrote: Mon Dec 03, 2018 4:36 pm And what's up with the spot made of bright pixels here? Related?
The first step when checking a DLSC related problem is always to switch max. path depth to 1 so you will see only direct light sampling:
prob1.jpg
It becomes quite evident that at glancing angles the information of the cache are not correct due to "normal threshold" (10 degrees in this case). If you lower the normal angle threshold to 4 degrees (and increase the radius to 15cm just to speed up the pre-processing):
fix1.jpg
and with full path depth:
fix2.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 cache: how to avoid splotches?

Post by Dade »

marcatore wrote: Tue Dec 04, 2018 7:50 am I sent you a PM with the scene.
About the carpet on the floor I confirm I used a matte material
Thanks, going to check but I have the strong feeling the problem is in the impossibility to have reliable cache information over the carpet (the particle system for hair simulating the carpet will likely to generate a surface over which is impossible to interpolate correct information).
Support LuxCoreRender project with salts and bounties
marcatore
Donor
Donor
Posts: 463
Joined: Wed Jan 10, 2018 8:04 am

Re: Direct Light cache: how to avoid splotches?

Post by marcatore »

Some exclude list or something else to help the engine with samples estimation?

Could be helpful in this case?
User avatar
lacilaci
Donor
Donor
Posts: 1969
Joined: Fri May 04, 2018 5:16 am

Re: Direct Light cache: how to avoid splotches?

Post by lacilaci »

marcatore wrote: Tue Dec 04, 2018 11:37 am Some exclude list or something else to help the engine with samples estimation?

Could be helpful in this case?
Or maybe retracing problematic areas if they can be identified...?
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Direct Light cache: how to avoid splotches?

Post by FarbigeWelt »

Dade wrote: Tue Dec 04, 2018 11:08 am
lacilaci wrote: Mon Dec 03, 2018 4:36 pm And what's up with the spot made of bright pixels here? Related?
The first step when checking a DLSC related problem is always to switch max. path depth to 1 so you will see only direct light sampling:

prob1.jpg

It becomes quite evident that at glancing angles the information of the cache are not correct due to "normal threshold" (10 degrees in this case). If you lower the normal angle threshold to 4 degrees (and increase the radius to 15cm just to speed up the pre-processing):

fix1.jpg

and with full path depth:

fix2.jpg
Wow! This is a good step by step instruction for DLSC related issues. Thank you much, Dade.
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
lacilaci
Donor
Donor
Posts: 1969
Joined: Fri May 04, 2018 5:16 am

Re: Direct Light cache: how to avoid splotches?

Post by lacilaci »

If I remember correctly, vray has this retracing threshold value for Light caching, I guess it's a workaround to deal with these type of problematic areas...? If we could detect shadow borders and these areas where cache has problems, maybe we could force "retracing" those areas, replacig cache with brute force?
Post Reply