• 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 /
This question was closed Aug 07, 2015 at 11:44 PM by TheOneFreeMan for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by TheOneFreeMan · Aug 06, 2015 at 12:22 AM · lightingshadowsspotlightflashlightflickering

Realtime spotlight shadows constantly flicker

I've been searching online for hours hoping to find someone else that has experienced my problem, however it seems that most people have only experienced flickering shadows with directional lights. In my scene, I have one directional light and one spotlight that is attached to the main camera and used as a flashlight. The directional light shadows work flawlessly. However, the spotlight parented to my camera also uses shadows which flicker constantly whenever the camera rotates. I tried using a point light and had no such issues. From my experience so far, it seems spotlights are very problematic in Unity (they also cause trees to light up suddenly, all at once).

I've tried tweaking the near and far clipping planes on my camera, the bias level on the spotlight, as well as the shadow quality settings. None of these settings makes even the slightest difference. Curiously, there's no flickering at all while standing still or using the keys to move around, it only happens when I move the mouse to rotate the camera. It also does not happen in the editor. If anyone has any idea what could cause shadows to flicker like this while rotating the camera, or knows of any settings I forgot to tweak, please let me know. I'm currently using the legacy deferred rendering path. The attached images show how just a slight camera rotation causes shadows to appear/disappear.

alt text alt text

shadowsnotworking.png (291.4 kB)
shadowsworking.png (307.6 kB)
Comment
Add comment
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 Reply

  • Sort: 
avatar image
0
Best Answer

Answer by TheOneFreeMan · Aug 07, 2015 at 07:58 AM

Well, in case anyone else sees this and has the same problem, I "solved" it by using a point light instead (they are much more stable) with a cubemap containing a flashlight cookie in the front and black for the other sides.

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

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

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

Related Questions

Spotlight Soft shadows not rendering when close to object. 1 Answer

Spotlight's shaft created by HDRP volumetric fog flicker 3 Answers

Unity 5 Spot Light no shadows or break in the light 2 Answers

Spotlights "turn off" a certain distance from camera? Possible Lab Renderer issue (maybe not). 0 Answers

GameObject doesn't cast a shadow 3 Answers


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