- Home /
Terrain flickering, really annoying please help
When I have the terrain option: cast shadows enabled, I have really bad flickering happening. I'm using a directional light, tried messing with every single setting in the light properties, shadows, rendering quality, terrain properties, nothing seems to fix it. Using the standard grass texture painting and 1 duplicated scaled up tree.
vid- Youtube
Well it seems like it's not even the trees causing the issue, I only have terrain with some grass now look at this video of in the scene view- http://www.youtube.com/watch?v=VRhDr4Flo9k
Answer by Geoxion · Mar 07, 2016 at 03:35 PM
This might be a camera problem. Try increasing the near clipping plane. That often helps this kind of problems.
This fixed my issue, default near clipping plane is set to 0.1 in our editor, I had to bump this up to 0.7 to completely remove the flickering. At 0.5 it was "better" but could still be seen on the tops of buildings and certain terrain tiles when player is flying around.
Answer by norse950 · Mar 07, 2016 at 11:17 AM
This might come in very late, but I think it's still useful. The ONLY permanent fix for this, as far as I can tell, is reducing the terrain size. The memory and computational resources involved in rendering large terrains causes errors, simply because the hardware is pushed over its limit.
By trial and error I found that the maximum size for each individual terrain I can work with is 3000 x 3000, anything larger causes the shadow flickering issue.
So if your world is say, 9000 x 9000, use 9 terrain tiles, each 3000 x 3000, and stitch them together. Flickering gone.
Answer by sk8tyger · Sep 06, 2019 at 02:58 AM
Hey, this can also be the camera I found out. If your rendering is set to deferred change it back to 'Graphics Setting'
Answer by Imankit · Jan 05, 2013 at 09:42 AM
I think it may be a shader problem...
Shader? Well I made a completely new scene, created a terrain, added a texture, added a directional light, added one default grass & tree , put on deferred render and still get the problem. I didn't use any special shaders or choose any shaders
Answer by kenncann · Jan 28, 2021 at 07:04 AM
This is many years late but I was having this issue and and the comment that mentioned terrain size made me realize what the problem is. With big terrain sizes you start to run into floating point issues. See this video for an example of the issues this causes and how to fix it with the floating origin technique: https://www.youtube.com/watch?v=qIxifMcvYTs
Your answer
Follow this Question
Related Questions
increase range of pixel-lighting on terrain? 2 Answers
More detailed terrain shadow 0 Answers
Bugs with Terrian. Unity 5.4.0f3 FIXED 0 Answers
Does anyone know how to fix this? Yellow texture on imported objects. 1 Answer
Deferred Rendering lighting bug. 0 Answers