Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Freaking-Pingo · Nov 06, 2012 at 03:42 PM · lightingshadowsplanes

Plane intersection creates light artifact

Hi there fellow Unity users, I am having an issue with an artifact I don't know how get rid of. Currently we are in the development of a horror game, and are creating a level within a mansion.

What we want is some directional light that shines through the windows, though by installing a directional light artifacts occurs near the walls and floors which we can't seem to figure out why.

Anyone know why this occurs and how to get rid of it?

Notes:

  • The walls and floor is consisting of two planes without backfaces

  • Yes, the planes a properly connected. I even had them intersect each other and the error still occur.

  • Other light sources creates the same artifact

  • No difference between hard and soft shadows

  • The artifact can be reduced by reducing the bias, but that doesn't solve the issue, and aliasing occurs instead.

The image attached illustrates the issue, the top image you can see the artifact which reaches between the wall and floor intersection.

alt text

help.png (339.3 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
Best Answer

Answer by Eric5h5 · Nov 06, 2012 at 04:27 PM

The walls and floor is consisting of two planes without backfaces

That's the problem...the wall needs to be modeled as an actual wall, with some thickness and two sides.

Comment
Add comment · Show 4 · 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 Freaking-Pingo · Nov 06, 2012 at 04:31 PM 0
Share

Yeah, I can see by using two boxes the artifact will not be there either. Then I have a question though, in order to save vertices it is common procedure to use planes as it is not necessary to see their backfaces. How do they generate shadows? Is it by baking light maps?

avatar image Eric5h5 · Nov 06, 2012 at 05:02 PM 0
Share

I imagine the shader used for generating the shadow geometry has backface culling turned off.

avatar image Freaking-Pingo · Nov 23, 2012 at 05:29 PM 0
Share

I never really solved the issue, but from discussing the issue with other Unity gurus the issue seems to appear when utillizing planes.

avatar image Eric5h5 · Nov 23, 2012 at 09:41 PM 0
Share

If you model the wall with two sides (two planes facing opposite directions) and a little bit of thickness, then the problem goes away. It's not really anything to do with planes per se...a very thin box will have the same issue.

avatar image
0

Answer by Paulius-Liekis · Nov 06, 2012 at 03:49 PM

Try adjusting shadowmap resolution.

General recommendation: use lightmaps instead, you will get better quality and much better looking lighting.

Comment
Add comment · Show 2 · 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 Freaking-Pingo · Nov 06, 2012 at 04:08 PM 0
Share

I am not sure if I am using the light maps correct, but I am afraid they are creating the same artifact

avatar image Freaking-Pingo · Nov 06, 2012 at 04:18 PM 0
Share

Forget it, light maps really seems to do the trick and damn, they really create some amazing lighting. Though I would still be interested in knowing why the shadow mapping is conflicting with two planes.

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

Directional Light creates wierd shadow? 2 Answers

Unity Indie - Indoor Lighting / Shadows 2 Answers

Toon Shader Working With Multiple Spotlight Shadows (Pro) 0 Answers

What am i doing wrong with Lighting? 1 Answer

Static Baked Lighting: Are Soft Shadows more expensive than Hard Shadows? Is there any runtime performance or memory disadvantage to using baked soft shadows vs hard shadows? 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