- Home /
Light/Shadow Z-Fighting Styled Flickering while Camera is Moving Around
I have created a scene in which i have around 15 pixel based lights. Shadow distance is set to 170 , soft shadows with 4 cascades and deferred rendering. I recently replaced a placeholder cube with an actual 3d model of an object. Right after that the light and shadows and light began to flicker as the camera moved around. Visual Example on the video below: http://www.youtube.com/watch?v=cHpUs3uju7I
It only appears in that particular level and is quite frustrating and game breaking , any solutions?
EDIT: The shadow flickering for single lights disappears if i go near them.
EDIT 2: Apparently , only the Point Lights are flickering in such a way , the Spotlight behaviour is quite different.
EDIT 3: Now it strangely appears to happen in every new scene i create. Older scenes are unaffected.
EDIT 4: Now that is quite strange , i have a cube as the ground which was 0.4 units thick , i increased it to 20 and the problem now appears at a smaller scale.
For anyone who has found this question via search but for whom the answer below doesn't work: http://answers.unity3d.com/questions/331461/why-do-shadows-sometimes-disappear-intermittently.html
(That's not a solution, unfortunately, just a new question to track the unsolved problem. Please vote up if you need a solution.)
Interesting, I also have this problem. The only thing that fixes it is changing the Camera's Near Clipping Plane. In my case setting it from 1.0 to a higher value like 4.0 gives me perfect shadows.
Answer by yeoldesnake 1 · Oct 22, 2011 at 12:29 PM
I appeared to have solved the problem , i changed the Camera's Near Clipping Plane to 0.1 from 0.01 and it got fixed.
Answer by WestSydeWilly · Aug 11, 2014 at 12:11 AM
This is old, but I had a similar problem and fixed it by reducing the main camera's far clipping plane. So if the above answer doesn't work, try that as well.
Your answer
Follow this Question
Related Questions
Unity pro 4, shadow problems 0 Answers
Why won't shadows render? 1 Answer
URP shadow problem 0 Answers
Illumination through walls 0 Answers
How to detect if an object is under a shadow casted by a directional light 1 Answer