• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Magnus Wolffelt · Aug 02, 2010 at 10:05 AM · terraingraphicsshadowsartifactsflicker

Terrain flickering due to real-time shadows?

I get occasional heavy flickering on my terrain now since I turned on real-time soft shadows. Any idea what could be the cause?

For an example, look at 0:29 and onward in this video: http://www.youtube.com/watch?v=pX8Q3tKHZMU

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Acreates · May 16, 2017 at 03:43 AM 0
Share

I started seeing this square shadow patch out of nowhere... is my lighting corrupted?alt text

patch2.jpg (79.0 kB)

8 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Magnus Wolffelt · Aug 07, 2010 at 09:31 AM

I found a way to.. kind of remove the issue. It seemed to be certain large objects causing these z-fighting shadows. I disabled the whole object hierarchy and then enabled it again, and the problem disappeared at this location on the terrain.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Aubrey-Falconer · Dec 10, 2010 at 02:40 AM 0
Share

I am having the same issue, and the only way I have been able to even reduce it was to drop my shadow distance to nearly nothing. Were you able to resolve this? If so, do you know what you did? :) I have the problem on EVERY terrain object I create in unity.

avatar image
20

Answer by TheDevGuy · Jul 30, 2015 at 09:05 AM

alt text

Just change the Clipping Planes "NEAR" and that will fix the issue about 99% of the time. Sometimes people will make the near place the minimum and that causes this issue. Try setting a value like .5

Also, there no need to mess with the shadow distance or bias in the light setting.

Hopefully this helps.


9f5a6e7ad51df4b5d88d14c9c27173ea.png (1.7 kB)
Comment
Add comment · Show 7 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image m1 · Aug 12, 2015 at 05:00 PM 0
Share

Surprisingly, that did fix it! I changed my Near clipping to 0.1 on my camera and that works for me. It was 0.02 before.

avatar image triangle4studios m1 · Jan 05, 2021 at 06:37 PM 0
Share

Yeah it fixes it, now I have no shadows at all.

avatar image Rodolfo-Rubens · Mar 05, 2016 at 10:23 PM 0
Share

Wow thanks man!

avatar image sporkflips · Oct 25, 2016 at 06:16 AM 0
Share

I was having this same issue and clipping planes did not influence it. I turned both bias and normal bias up to max on my main directional light and it went away. I feel like this is not an ideal solution but it's the only thing I've found so far that works for me.

avatar image sewy · Nov 16, 2016 at 08:28 AM 0
Share

Works for me as well, THAN$$anonymous$$S!!

avatar image TerryD1971 · Dec 13, 2018 at 04:23 AM 0
Share

Been looking for "the simple solution" to this for so long that I'm embarrassed. Changed near clip to .5... PRESTO! Thank you TheDevGuy, you are my hero!

Show more comments
avatar image
2

Answer by vbs · May 19, 2015 at 07:58 AM

I've been able to reduce the problem by fiddling with the shadow "bias" setting on the direction light object. Increasing the bias has reduced the flicker problem but it also seems to introduce issues where the beginning of the shadow is offset from where it's supposed to start.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by AliAzin · Aug 02, 2010 at 11:52 AM

You can change the quality settings of shadows in : Edit > Project Settings > Quality try to change shadow cascades to four, shadow resolution to High and decrease the Shadow distance.

Hope that helps.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Magnus Wolffelt · Aug 03, 2010 at 08:52 AM 0
Share

These settings seem to only affect the flickering of the actual shadows. This is something else - there's actually lots of flickering on large areas of the terrain that aren't receiving shadows. They are more like artifacts than flickering shadows.

avatar image vbs · May 18, 2015 at 05:06 PM 0
Share

I have similar issues in Unity 5

avatar image
0

Answer by Acreates · May 17, 2017 at 07:23 AM

I started seeing this square shadow patch out of nowhere... is my lighting corrupted?alt text


patch2.jpg (79.0 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

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.



Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to deal with shadow scale and self-shadows? 1 Answer

No Shadows on Tessellated Terrain 1 Answer

Shadows popping in/out during runtime 0 Answers

Colored "jaggies" when I turn on aliasing on shadowed surfaces 1 Answer

[Android] Lights Issue 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges