• 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
Question by huynhke · Apr 06, 2015 at 06:50 PM · unity 5lightlightsrealtime

Realtime light is leaking through walls?

Hey so i'm problem with my realtime light in Unity 5. It has shadows and all the objects it is $$anonymous$$tting is supposed to cast shadows, but it's leaking through the top of the roof and the right side?

I know that for the new GI system, "bounce intensity" will cause it to leak in the current version of Unity. I have a different light in another room that had the same problem until I set "bounce intensity" to 0, and it stopped leaking. But t$$anonymous$$s one has it at 0 also, but continues to leak. Any ideas?

alt text

alt text

lightleaking.jpg (60.5 kB)
lightleaking2.jpg (61.2 kB)
Comment
DavidSof
CN_tianhe

People who like this

2 Show 0
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

5 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Runemark · Apr 03, 2018 at 01:47 PM

alt text Light Leak Solution

Hi! I know it is a bit late but the leaks are present in Unity 2017 too. I found that setting the Normal Bias to, or close to zero in the Directional Light's settings closes the "gaps" w$$anonymous$$ch appear on hard edges of the mesh.


leak-solution2.png (497.8 kB)
leak-solution1.png (414.5 kB)
Comment
Rosehardt
UmbrellaQ8

People who like this

2 Show 0 · 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

Answer by TommygunnJND · Dec 07, 2015 at 11:26 AM

Try adding t$$anonymous$$ckness to your walls, I had the same problem and Also had t$$anonymous$$ckness to my walls but they where seperated so the inside wall and outside walls where differnt meshes. After added a simple extruded face to the walls and now no light leakage!! try it out

Comment
redhummingbird

People who like this

1 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 redhummingbird · Jul 01, 2017 at 08:08 PM 0
Share

That worked for me! Thank you!

avatar image

Answer by Boris1998 · Jun 21, 2015 at 06:05 PM

The light is leaking through perfectly attached cubes (arranged in Unity Ediotr). I don't see why... Someone posted the solution for directional lights, w$$anonymous$$ch also solves shadow "stripes" on strange angles. The trick is to play with Shadow Bias w$$anonymous$$ch, sadly, only works on Directional lights in Unity 5 for some reason...

BIG BUMP!

alt text

alt text


leak-interior.png (256.1 kB)
leak-exterior.png (310.0 kB)
Comment

People who like this

0 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 Willow74 · Jul 28, 2022 at 10:11 AM 0
Share

Try changing the light shadow type to hard shadows in the inspector if you haven't tried already. It worked for me :)

avatar image

Answer by Alverik · Apr 16, 2018 at 06:36 PM

In the lightening tab, create a new Light Parameters Asset and play with the "Modelling Tolerance" value in the realtime GI section. (It's an option in the progressive light mapper. Not sure when it was added but I'm using Unity 2017.3)

Comment

People who like this

0 Show 0 · 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

Answer by ramiz291 · Sep 09, 2021 at 06:30 PM

I do not know if I am answering late. I have experienced t$$anonymous$$s issue in URP. After trying different settings I found the resolution. Try changing: Lighting property > Cast Shadows > Two Sided. Also mark "Stitch Stream" to true.

alt text

After changing the propertiesalt text


unity-shadow-castinng.png (81.0 kB)
unity-shadow-castinng-problem.png (86.3 kB)
Comment

People who like this

0 Show 0 · 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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

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

Related Questions

Can't get GI to work in unity 5 2 Answers

2d volumetric lighting, light behind background 1 Answer

Baking lights increases scene brightness. 1 Answer

Lighting not consistent 0 Answers

Hide lights for other camera(s)? 0 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