Enabling Megalights to my post process volume causes wierd dark splotches to appear and leak/fade out when rotating and moving the camera. Anyone else have this issue? It only appears in dark/shadowed areas of the scene.
did you manage to solve?
To see what Megalights is doing in that shadow area I recommend following the debugging suggestions in the doc.
- Enable r.MegaLights.Debug 1
- Rotate your camera so the issue reproduces and hover your mouse cursor over one of the dark spots. It should list all the lights considered in that area.
- Run r.ShaderPrint.Lock 1 to lock the rays to the cursor position so you can fly around and see which lights MegaLights was using, and that can help you track down whether the issue has to do with there being a lot of overlapping lights that never affect the pixel, lights leaking through your ray trace scene and being selected as the most important but always in shadow, or something else.
- Do the same thing after the issue is resolved to trace to the correct light and see if there`s a difference between the lights chosen when in shadow vs lit
In theory, if you removed/disabled all the lights in the scene except the one that should be used on that wall, you should have no problem with the shadow, so that’s another thing you can test to see if it’s a light selection issue or something else - possibly a ray guiding history issue where the history is being used instead.