Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 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
2
Question by aristojoyce · May 29, 2020 at 05:29 AM · lightinglightmapglobal illumination

Meshes turn black after baking lightmap

I've been struggling to bake my scene for several days. And I don't know where to look at to solve the issue.

I have a scene made up of some outdoor stuff and a room with no windows. Inside the room, there are four point lights. Models are imported OBJ models. In the editor before baking, the everything looks nice. After the bake, things go black.

The upper half is what I expected, the lower half is what I got: alt text

You can see the floor and walls are blacked out. And it seems light would go through the floor and light the basement below it.

In additional, I've turned off the skybox and directional light in this example, but when they were on, the light can shine through the walls.

Here is my light setting: alt text

I am not familiar with 3D modelling, and don't know what to do. It would be appreciated if someone can point me to the direction of solving the issue.

screenshot-7.png (183.5 kB)
screenshot-6.jpg (262.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

1 Reply

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

Answer by SteenPetersen · May 29, 2020 at 05:46 AM

Hi @aristojoyce

There could be several causes for this, one could be that you need to Generate Lightmap UVs. Try turn on "Generate Lightmaps UVs" in the import options of your meshes. Also, could the normals be flipped?

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 aristojoyce · May 29, 2020 at 07:12 AM 0
Share

Thanks for the quick reply. This did the trick. I've tried checking "Generate Lightmap UVs" before but it gave me error so I reverted that. Turns out the error is not relevant and it works. alt text

screenshot-8.jpg (165.6 kB)
avatar image SteenPetersen aristojoyce · May 29, 2020 at 07:18 AM 1
Share

Glad I could help, remember to upvote answers that help as it helps those that answer the question as well as making it easier to find for other users of the community.

avatar image mrboembastic · Mar 21, 2021 at 07:49 PM 0
Share

Thank you! this was the solution to my problem. (Try turn on "Generate Lightmaps UVs" in the import options of your meshes)

avatar image sunwooz · Feb 06 at 10:27 PM 0
Share

In my case, I had to open a new scene and go back to my original scene.. for some reason.

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

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

Indoor Lighting Scene - Baking? Realtime? 0 Answers

How do I adjust the lightmap parameters for objects in Unity 2018? 1 Answer

Emission is not working, or GI is not working Unity 5.50b7 0 Answers

Where is Enable precomputed realtime GI? 3 Answers

Can/Should I bake lightmaps in a completely dark room? 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