Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 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
0
Question by Reverend-Speed · Feb 26, 2019 at 05:04 PM · lightingspotlightleakpointlightbackface

Why am I getting light leaks in Basic Realtime, and how can I avoid them in future?

Hey folks, doing some procedural generation with 3D tiles, so can't bake lights. Basically left using Basic Realtime Lighting: alt text However, I'm having a little trouble as I'm finding point and spot lights shining 'through' seams of my test modules... (see the little white bar of light at the back of the first four modules) alt text (The rightmost module has no backfaces - I clearly need to include those backfaces in order to occlude the majority of inappropriate light).

Can anybody advise me if there's a way to 100% exclude light leaks like these, or if I just need to be super careful about where I place the light objects?

I'd love to get some kind of authoritative verdict on this! Many thanks in advance!

believablevisualsbaked.gif (98.4 kB)
lightingexample.png (186.2 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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by WarmedxMints · Feb 26, 2019 at 06:12 PM

Unity's default shadows aren't great. You could use the HD render pipeline but it is still in development.

Assets like NGSS can improve things greatly on the default pipeline though - https://assetstore.unity.com/packages/vfx/shaders/next-gen-soft-shadows-137380

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 Reverend-Speed · Feb 26, 2019 at 11:26 PM 0
Share

Holy cow! NGSS looks amazing! Unfortunately, I'm trying to handle most of this myself as a learning exercise - plus I'm trying to keep things to basic Unity to make upgrading to later versions as straightforward as possible.

Thank you for your advice, however!

avatar image
0

Answer by MattG54321 · Feb 26, 2019 at 06:21 PM

This is a bit of a shot in the dark (if you'll excuse the pun), but try playing around with the settings in the Light Inspector, specifically the values under "Realtime Shadows." Changing the normal bias might be what you need.

You could also try changing "Cast Shadows" to "Two Sided" in your Mesh Renderers.

Hope this helps! Check out the Shadows page in the documentation for more information.

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 Reverend-Speed · Feb 26, 2019 at 11:43 PM 1
Share

Thank you, $$anonymous$$att! Advice and puns gratefully received!

This seems to speak directly to the problem (search the page for 'light bleeding') - thank you for the link. They also mention your second piece of advice, to change 'Cast Shadows' to 'Two Sided' in my mesh renderers.

Trying that out, unfortunately, had $$anonymous$$imal effect on my test! =( It helped a little with the module that had no backfaces, but I still got light leaks on all modules. I guess the only solution is to try to be very careful about using spotlights and to avoid ai$$anonymous$$g them at 'joins' in meshes or allowing a wide angle to overlap onto a join.

Thank you so much for your thought and experience!

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

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

Related Questions

Lighting problem and glitch. 4 Answers

Low shadow quality from distance light 2 Answers

Flickering circle of light around character 0 Answers

How can I change the SpotAngle's range in a SpotLight? 0 Answers

Spotlight lighting objects outside area light is being shown on 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