Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • 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
3
Question by bateleur · Oct 12, 2012 at 04:15 PM · camerashadowflicker

Why Do Shadows Sometimes Disappear Intermittently?

Using a single directional light and deferred rendering, I find that the shadows in my (simple) scene vanish sometimes depending on the camera position and orientation. When the camera is moving continuously this manifests as a flickering of the shadows.

I have seen other similar questions in which solutions have been reported as successful involving changing Unity's shadow-related quality settings, but none of these have had any impact in this case. Similarly, there is no reason to think this is z-fighting - which is often blamed - since the symptoms are different (shadow is either fully present or vanishes completely).

See this short video clip for a demonstration of the effect: http://www.youtube.com/watch?v=Wp-LGeI8vnY

Before anyone makes the obvious suggestion: my graphics card driver is up-to-date (ATI Radeon HD 3400). And in any case, shadows do not fail in this way for other 3D applications, so I am assuming I have made an error somewhere.

Comment
Add comment · Show 3
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 bateleur · Oct 22, 2012 at 01:43 PM 0
Share

Nobody's been able to shed any light on this problem, but I eventually found a workaround. The effect only happens at certain camera angles, so adding a small irrational component to every camera coordinate eli$$anonymous$$ates the effect in practice.

avatar image DarthDisembowel · Sep 28, 2014 at 04:36 PM 0
Share

The effect only happens at certain camera angles, so adding a small irrational component to every camera coordinate eli$$anonymous$$ates the effect in practice.

What you describe is what I'm seeing and nothing I do seems to work. $$anonymous$$y shadows flicker and disappear only at certain camera angle,regardless of clipping planes or shadow quality settings and distance.

I realize this is an old thread, but can someone explain "adding a small irrational component to every camera coordinate" so that I can give it a try?

avatar image Jaqal · Dec 17, 2014 at 09:17 PM 0
Share

I'd like to find a solution to this as well. It is most pro$$anonymous$$ent if you have a moving light source like a day/night cycle. No matter what quality setting I use it is still there just less noticeable. Not to mention raising the quality severely impacts performance.

5 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Jhyrith · Oct 23, 2013 at 02:12 AM

Try changing your camera's rendering path to Vertex Lit.

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 exorakhilas · Oct 10, 2014 at 06:16 AM 0
Share

If your scene has very pointy or low-poly environment, vertex lit will work best. Otherwise, normal mesh will create no shadow at all if Vertex Lit is used.

http://docs.unity3d.com/$$anonymous$$anual/RenderTech-VertexLit.html

avatar image
0

Answer by corriedotdev · Apr 06, 2016 at 12:51 AM

In the quality section, check the distance of the shadows. This can cause issues with the camera as it moves OR if the object that should be casting the shadow moves. I know this is a very old question but should someone else see this its worth a shot. By adjusting the cameras position - as mentioned in ops answer - it essentially does the same thing. By moving the object close to the camera itself so it is displayed correctly

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 bateleur · Apr 06, 2016 at 06:22 AM 0
Share

Thanks for the suggestion, but if you read the OP carefully you'll notice I already clarified that none of the quality settings had any impact.

Ultimately this effect was either a bug in Unity or at the lower levels of the graphics pipeline. Because Unity Answers is like a firehose of questions from developers of very different experience levels it's actually not very good for handling problems like this, but I try to always post them anyway so that other developers who hit the same thing have somewhere to discuss workarounds.

avatar image
0

Answer by vtunity · Jan 26, 2017 at 10:08 AM

Change Render mode of your light (used for shadow) from Auto to Important it will solve your issue. make quality setting as Default now its will not affect to lights while light is Rendering as Important.

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
0

Answer by Acreates · Mar 12, 2017 at 06:01 PM

This just started happening to me as well. When I look away at a 45degree angle, the shadow immediately disappears and pops out of existence. If I look up above 30 degrees it also disappears. I'm reversing everything I did to find the culprit. I can't use GI lighting above .01 because it takes longer than 8 hours to bake (even on my new i7 machine).

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
0

Answer by enriquee3ppvgaming2 · Nov 07, 2020 at 08:19 AM

Sorry for ultimately late reply but the reason is your near plane is low... you need to max that out to fix the issue... It helped me fix it. @bateleur

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

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.

Follow this Question

Answers Answers and Comments

16 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 avatar image avatar image avatar image avatar image avatar image

Related Questions

projector causing flicker 1 Answer

Second Camera Tearing on Android 1 Answer

What can cause shadow slicing while moving camera? 1 Answer

Plane / Decal Flashes With Player / Camera Movement 1 Answer

How to get Directional Light Shadows to render through an Orthographic Camera? 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