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
0
Question by CorWilson · Nov 10, 2014 at 07:08 PM · meshlightingcullingdirectional light

Light shining through mesh

Hi there. I'm having a little lighting trouble. I have a dynamic mesh that is made up of blocks procedurally. In the screenshot below, I am in a cave. Looking down the cave, you can see the directional lighting shining through. That place is closed off to light, so this shouldn't be happening (likely culling going on).

alt text

So moving down to the end, the light disappears and these artifacts show up in its place in the screen below. Messing with the shadow settings, it seems like light is reaching it somehow.

alt text

Here is a zoom out of the scene's mesh. The red circle is currently what the player is looking at. I am viewing this from the east perspective of the camera facing. As you can also see, all the "caves" in the distance, undergo this lighting, too, due to culling most likely. What is a way to fix these problems in general? A way so that culling does not ruin the shadows of closed off mesh spaces and cause the problems above?

alt text

Comment
Add comment · Show 1
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 CorWilson · Nov 10, 2014 at 07:57 PM 0
Share

Yeah. Lightmapping would have fixed it, but the mesh is never deter$$anonymous$$ed beforehand.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by t13d · Jan 16, 2021 at 05:43 PM

I had the exact same problem the first time I attempted voxel terrain. The issue is light isn't being blocked by some tris, so at certain angles sunlight will go through the mesh.

The way to fix this is to add another tri with revered normals for every existing tri.

I would recommend to make these tris connect to different vertexes at the same position as not doing so will cause vertex normals to act weird.,I think it may be that the mesh has only one sided polygons. Maybe try adding 2 triangles with opposite facing normals instead of just one so that light gets blocked by the other side

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Mesh lightning with directional light 1 Answer

have circle of pitch black in scene?? 1 Answer

Light Overlap? What should I do to get rid of this weird effect on my mesh? 1 Answer

Unity URP black outline on my mesh polygons 0 Answers

Unity creates triangles and then lights them up wrong 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