Question 1:
How do the “direct samples” and “indirect samples” differ? (progressive lightmapper)
Looking at the docs, it’s never mentioned, the only thing that’s explained are “samples”
Samples - The amount of samples (paths) shot from each texel. For some scenes, especially outdoor scenes, 100 samples may be enough. For indoor scenes with emissive geometry more will be needed.
Ok, so we are shooting that many rays from each texel, to search for colors all around our point.
However, why the amount of iluminated dots around the blue sphere stays the same if I crank up Direct samples from 0 to 1000?
But, if I change indirect samples from 10 to 1000, only then does it increase the number of texels which had enough sampling rays to “notice” a glowing sphere nearby.
Here you can observe how the points notice the sphere, where red arrows are one of such a ray-bouquet shot from 3 texels.
Why direct samples didn’t affect it? To me changing direct samples doesn’t affect anything
One weird thing is that Indirect samples cannot go below 10, but direct samples can be negative
(Unity 2017.2f03)
Question 2:
Also, regarding Area Lights, - does it shoot photons out, like MentalRay? Or is it up to the objects to find such an area light, through these ray-bundles as mentioned in this post? That process is also called Final Gather
I have a feeling that area lights aren’t shooting-out photons, because “Direct Light Quality” is grayed out, and isn’t modifiable in Lightmap settigns asset when using Progressive Lightmapper. It’s only tweakable when working with Enlighten
2 bounces results in one extra light transfer originating from emissive surface,
3 bounces results in two extra light transfers originating from emissive surface.
Indeed, it seems that in order to illuminate itself, a texel has to find an emissive material nearby, so emissive surfaces are processed as an indirect light emitters. So they rely on Final Gather
As I understand, path tracing is about selecting a point, then sending several wondering-rays which bounce through surfaces until they encounter a light source. If, yes, then we light the point with colors of all intermediate surfaces, otherwise we leave our point as is. I in our case, path tracing would be the final gather (correct me if I am wrong) - since we are sending querying rays from the surface, not from every pixel on the screen.
So, in other words - in Progressive Lightmapper, will area lights have same behavior as a spotlight or point light?
Why in that case neither Direct nor Indirect Samples doesn’t affect the area lights?
I did a similar test with area light, and it’s not similar to the emissive surface - for these area lights the red dots apear even with 2 bounces. So it indeed must be using a form of path tracing, like photon mapping
It’s quite uncomfortable that there is no way to affect area light’s quality when using Progressive lightmapper (Area lights have the best looking result), and Enlighten just takes ages to complete
Im struggling to get rid of the noise on very smooth surface when using Area light… Anyone found a solution to get rid of splotchiness ? I tried cranking up the direct and indirect samples (2000/1000) but its still not perfect.
I can’t remember it fully, but I think you can create a lighmap settings asset from Lighting window, then adjust settings from there. Also, you need to select such a created asset from the LIghting window’s dropdown.
That should affect area lights starting from 2018.1 for 2017 they kept it fixed and low.
I really wanted to use area lights everywhere, even for ouside lighting because it looks so good and there is no direct light that wouldn’t affect the whole level at once.