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.
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
terrain is 10,000 x 10,000
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 ankit-tiks007
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
how is this an "answer"?
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.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
12 People are following this question.
Terrain invisible in Unity 5.1.2
How to make terrain trees receive shadow
Terrain textures are way too dark
Terrain, mesh, bug, 3ds, dxf, other system to have raw file?
How to remove Unity 4 bumped terrain blending artifacts