Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 sbsmith · Jun 01, 2018 at 07:31 PM · lightingscene-loadingglobal illuminationloadlevelasyncadditive

LoadSceneAsync breaks lighting with Assertion failed (Update: Light probes are to blame!)

I have a scene and on the first frame I load several other scenes additively. Everything works. However, if I wait a few moments, then load one of those scenes additively, my lighting breaks and my console is flooded with the following assertion

 Assertion failed: Assertion failed on expression: 'root1 >= -epsilon || root2 >= -epsilon || root3 >= -epsilon'

At first I thought it may have something to do with light probes because the lighting errors only appeared to be on the moving elements. However, after removing all the light probes, I'm still getting the error.

My assumption is that loading the scenes in the first frame causes the original scene's lighting to override that of those additively loaded and that loading a little bit later causes some kind of conflict.

Any ideas on what could be wrong or how to get around it?


Update: My hypothesis has changed. The assertion is stemming from the loading of two specific scenes in a specific order and the assertion is being thrown by a few different meshes.

Lets say I have scene A and B. If I load A on Start, wait five seconds, then load B a few meshes in A will start throwing the assertion (at least I assume they are because if I disable them, it stops). The assertion is ONLY thrown in the above instance. If the scenes are loaded in a different order, or loaded in the same order but both at Start, there will be no assertions thrown.


Update: The assertion disappears if I disable certain static objects in scene A. This is baffling. There is nothing in the setting differentiating them from objects that are fine.


Update: I deleted the entire lighting folder and rebaked. The error is gone. I deleted the entire folder again, put the light probes back in, and baked again. The error returns. The error has something to do with the light probes. Even though I deleted them before, I guess there was something in the lighting folder that was acting like they were still there. It appears that the assertion is caused by some kind of triangulation error when sets of probes are loaded very far apart but only when they are loaded very far apart with a time gap between the loading, and only when they are loaded in a specific order.

The assertion stems from static objects. Why do they care about light probes at runtime?


Note: Unity 2017.3.1

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

0 Replies

· Add your reply
  • Sort: 

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

114 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

Related Questions

Additive scenes with scene-specific global light settings 0 Answers

How to wait for baked lighting to load when using LoadSceneAsync? 0 Answers

Modify Scene origin before loading scene? Or LoadLevelAdditive @ certain world position 0 Answers

Generate Lightmap UVs causing needless overlap 0 Answers

What does (not loaded) mean? 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