Path Tracing - Light size affects other lights

Hi

I’ve found this very strange artifacting with Path Tracing when having multiple lights in a scene that have varying sizes.
When they “intersect” with each others range, and have a wide size, shadow artifacts will show themselves.

Wide size example:

Narrower size example:

Since emissive surfaces don’t really cut it when trying to light up a scene, we’d have to use lights. This makes it near impossible to work with interior scene where we rely on lights. Using lights help the noise of the PT but when you get artifacts like that it’s hard to justify it.
While it might look like it’s gone when using a smaller size, but only slightly.
In these examples the lights have a size of 0.025 or 0.05, which is pretty much the size of the lights they are representing. And the issue is still present as you can see.



These are not shadows of anything but artifacting caused by light intersecting with each others range it seems.

Perhaps an unsolveable issue?
This has been there since I first looked at the pathtracer in unity, and that was last august.
I know they are updating the pathtracer with each version, but this issue seems to not be solved yet.

Been a while, but I can post an update on my findings.
This is related to a hardcoded limit of how many lights the pathtracer can handle.

Setting this to anything higher will fix the issue.
Why was it set to 16 in the first place? Seems like a number chosen by random rather than anything else.
In our projects we use many, and I mean MANY lights per scene. Leaving it to default will cause those ugly shadow artifacting everywhere each light intersect. Setting it to 64 (random number but a higher random number), now those artifacts are gone. With more or less no impact to performance why not increase the number, or better yet actually use a value that can be exposed in the Post Processing volume.

Hi, i am facing this problem while rendering many light in HDRP path tracing mode. Can you please provide an explaination on how and where to edit the max light count ? Thanks a lot

You will have to copy the HDRP package from ‘Library/PackageCache’ to ‘Packages’, then navigate to ‘\Runtime\RenderPipeline\PathTracing\Shaders’ and open the ‘PathTracingLight.hlsl’ in a text editor.
In that shader file find the MAX_LOCAL_LIGHT_COUNT and set its value from 16 to something much higher.
Save and go back to Unity, it will now compile and the ugly shadow artifacts are gone.

You had to make a local copy of the HDRP package because Unity will re-download the package and overwrite any changes you make.