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 AyeEmTeeBee131 · Oct 18, 2019 at 04:03 AM · lightingbakingbakebaked light

Baked indirect/environment lighting still cast shadows from objects that are not suppose to cast shadows

I'm trying to bake a level that has non-movable crates that can be destroyed. I want the crate's lighting to blend with the local surroundings to help not stick out like a sore thumb, but at the same time not leave a permanent imprint even when said crates get destroyed. So I figured that I could make the crates not cast shadows, so that they're still affected by the environment, but not affecting the environment itself.

Turns out that while the baked direct light does work as intended, either the indirect or environmental light (don't know which one) still casts shadows onto the level from the crates. Is there something I can do about it though?

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 AyeEmTeeBee131 · Oct 18, 2019 at 07:53 PM 0
Share

The only way I can see myself working around this is by copying rooms where the crates are suppose to be, and bake said crates in the copied rooms; while the actual rooms bake without any crates present. Obviously this isn't the most efficient way as it creates extra, unused lightmaps for the copied rooms.

2 Replies

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

Answer by Neran28 · Oct 19, 2019 at 03:22 AM

Baked lighting is precomputed and does not update during runtime. If your crate contrubutes lighting to a nearby surface and your crate is then destroyed the baked lighting will not get updated so the surface remains shadowed from the indirect lighting.

Uncheck the contribute to GI flag in the static drop down of the crate object. You then have to place light probes in your scene in order to get indirect lighting for your crates so they do not stick out. You can also enable them to cast shadows.

Alternatively you have to use realtime global illumination in the lighting settings and use realtime light sources.

Comment
Add comment · Show 5 · 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 AyeEmTeeBee131 · Oct 19, 2019 at 09:40 PM 0
Share

By "direct light" I'm referring to the baked direct light. It's the baked indirect light that is still casting shadows. Unless the indirect light bouncing does not count as a "shadow". If so, is there a way while baking for the crates to not affect the environment, yet be affected by the environment itself?

avatar image Neran28 AyeEmTeeBee131 · Oct 20, 2019 at 05:53 PM 0
Share

As is said. You have to unmark the mesh renderers of your crates to not contribute GI. And then place light probes to have your crates get indirect lighting from the environment. When baking lighting it is not possible to remove the contributed GI from a specific object from the lightmaps. Baking is a precomputed process.

Alternatively you have to use realtime global illu$$anonymous$$ation in your lighting settings and use realtime lights.

avatar image AyeEmTeeBee131 Neran28 · Oct 20, 2019 at 06:32 PM 0
Share

Tried realtime GI already, but with it on, point lights illu$$anonymous$$ate the rooms up beyond the light's supposed range. Are light probes expensive on performance or do I have to resort to copying rooms then bake crates in the copied room before putting them back in their original position?

Show more comments
avatar image
0

Answer by rackert · Nov 23, 2021 at 01:31 AM

Its a bug, here's a workaround - Turn off cast shadows. Set your crate material to transparent and alpha 0. The crate will still receive baked lighting and be included in the lightmap but it will not leave behind AO on adjacent objects. You'll need to do this every time you bake and then remember to set the material back to opaque when done. If remembering that all the time is too open to error for ya, another option might be just leave them transparent all the time and to add a little script on the crates or the scene that sets the material to opaque so it looks right when you play.

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

153 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 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

[PathTracer] Failed to add geometry for mesh 'Plane.002'; mesh is missing required attribute(s). Please make sure the mesh contains at least positions, normals and texcoord0. 0 Answers

Baking ambient color not possible? 1 Answer

What is happening to my baked lighting? 1 Answer

Baked Lightmap shadows issue 0 Answers

Strange stains when bake light 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