Hello! Using Post Processing 2.2.2 in Unity 2019.2.11f1, I get an almost strobe-like flashing or flicking from the Bloom effect when I animate the scene:
EDIT: I guess that .gif won’t embed? Well here’s a direct link, please check it out:
You probably have some nans sneaking into the floating point buffer. I think there might be some options to fix this on the camera component. Or, look at your shaders to see if division by zero is possible. Good luck!
There is, in the camera’s Post Process Layer, a checkbox that says “Stop NaN Propogation,” but it was already checked. Tried unchecking and rechecking and it seems to not make a big difference to this particular issue either way.
Not sure how to check the shaders to see if division by zero is possible, but this is using the Unity Standard shader; would that not be set up correctly already?
One stopgap measure I’ve tried: Reducing the bloom intensity from 3 to .5. Not as impactful visually, but it does make the flashing less obvious.
Hey. So having looked at the gif again it is possible i suppose that you are getting small very bright specular reflections on the vehicles which are transient just because of the viewing and lighting directions. If that is the case then even though the end result is undesirable the process is probably working as expected. You could try playing with the metalness / smoothness parameters of the vehicle material to see if reduces the effect. If so, maybe try changing the light direction and or intensity. You could also clip the output of the standard shader (would require a simple customised shader) or maybe try disabling hdr rendering on the camera. Disabling hdr might have negative effects elsewhere however. Good luck!
That might just be it. Zooming in close I realized the highlights were super big, a bit overdone for even a gleam of sunlight. Turning down the bloom intensity made the flicker less noticeable, and it then read more like a sparkle. I had also previously turned down the smoothness, and got a toned-down result as you suggest. But then I missed the polished chrome looked and so changed it back. I also tried turning off HDR at one point, but that seemed to simply making the sharp highlights go away, while making broad, flat patches of white glow as if radioactive; a negative result overall. So I changed that back as well.
Hi friendo,
struggled with this too. Simply disable ‘Allow MSAA’ con camera component. Works for me and the flickers are gone. Bloom is still visible and only the annoying light flickers are gone
If you mean flickering of lighting like when moving around in a scene and using Post Processing, on the Camera turn on Leave Occlusion Culling on, set render Path to Differed, turn off HDR and MSSA.
keep the Post Processing Layer on the Camera Anti-aliasing to Fast and Approximate, turn on Fast Mode, and keep Differed Fog enabled and exclude Sky box on. That should resolve a lot of the issues with the lighting factor.