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
7
Question by brainbox3d · Mar 17, 2015 at 12:22 PM · unity 5lightshadowslinesgaps

Unity 5 Real time lights cast shadows with gaps / light leaks

Hello,

Real time shadows cast by a directional light in Unity 5 have tiny gaps in them. As if the models had cracks and there was light passing through.

alt text

http://www.brainbox3d.com/bordel/shadowsU5.png

As you can see, the models are very simple and I checked them for actual gaps, missing polygons and reversed normals. I tested close to 20 models from different projects and they all exhibit the same issue when placed into the scene. The lines get rougher and finer depending on the quality settings but never actually disappear.

The bug appears in places where two polygons are perpendicular to each other - hard edges, walls, ledges, etc. They emerge and disappear as the camera angle changes.

This wasn't an issue in Unity 4 and appeared upon the update of this project to Unity 5.

Any input would be appreciated. I tried to search for a solution but couldn't find anyone with a similar problem.

Thanks

BRAiNBOX

info@brainbox3d.com

Comment
Add comment · Show 2
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 Cherno · Mar 17, 2015 at 01:29 PM 0
Share

I encounteres this problem when different parts of a mesh are not "one piece", meaning while vertices might lie completely on other edges or vertices, there is no actual connection with polygons sharing vertices. Through those visually and mathematically not-existing gaps, Unity makes slivers of line shine through.

avatar image thomasphifer · Apr 10, 2016 at 09:39 AM 0
Share

I'm having the same problem. It certainly helps A LOT turning the Normal Bias all the way down to 0 (thank you!) but it doesn't fix it 100% for me. As @BEEFDOCTOR mentioned turning the Shadow Bias all the way down makes the shadows look like they're all going through a screen door so I just left it at .03. Is there another method I can use to clean this up that I'm missing? This is so weird and frustrating! alt text

lightbleed.jpg (85.9 kB)

4 Replies

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

Answer by brainbox3d · Mar 17, 2015 at 09:05 PM

Oh never mind.

The answer was setting the Directional light Bias all to 0 OR selecting "Two sided" in a prefab's cast shadow setti0ngs.

Hope someone with a similar issue might find this helpful.

BRAiNBOX

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 AnatolyDream · Apr 16, 2016 at 06:40 AM 0
Share

Does "Two Sided" casting mode affect performance too much? I'm trying to find an answer to this question.

avatar image
1

Answer by BEEFDOCTOR · Jul 01, 2015 at 11:27 AM

The problem you are going to face by putting your lights shadow bias down to 0 is "shadow acne" try setting the shadow bias to 0.04 and turn your normal bias down :D

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 OnixSystems · Oct 26, 2016 at 12:23 PM

https://www.youtube.com/watch?v=t9PvakCS5Tc

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 kautsar211086 · Jan 09, 2017 at 09:13 AM

In my case, the solution is the normal bias should be "0"

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

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

RealTime Trees Shadows that are instantiated at Runtime(By code)...! 0 Answers

No shadows with PointLight/SpotLight 1 Answer

Point light realtime shadows! 1 Answer

Camera custom matrix, shadows not working anymore - Unity5 1 Answer

Baking lights increases scene brightness. 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