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 deraggi · Oct 18, 2016 at 06:17 PM · lightmapbaking

Unity Lightmap Baking - horrible Results

Dear Communty,

as I need to optimize my game, I would like to Bake a lightmap. However the baking process get me horrible results, which I am not able to resolve myself

This is what my scene looks before the bake

https://i.imgur.com/zfrRoBK.png

This is how it looks after the bake

https://i.imgur.com/6cZyXQm.png

Here are my bake settings:

https://i.imgur.com/dlya6vh.png

Here is my directional light:

https://i.imgur.com/F66KWej.png

HereÄs the settings for the left stone

https://i.imgur.com/kv3PqRD.png

Right Stone:

https://i.imgur.com/CqHQ7cQ.png

Things to mention:

1) The trees are not lit at all 2) The right stone is black 3) The left stone is missing its Normal map and is blurry overall 4) The terrain color is much more "flat"

Has anyone any suggestions what I can do?

Thanks in advance!

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

4 Replies

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

Answer by Axemaster1234 · Oct 18, 2016 at 07:18 PM

my advice to you:

first off, uncheck auto, it will just overide your bakes and cause trouble. make sure all your objects you want to light are static. secondly, i work with soft shadows for a cleaner shadow distribution. third, switch your ambient source to colour and play with the colours. go to every object and check/uncheck cast & recieve shadows on/off for the shadows you want to see or don't want to see. remove direct light . in player settings, look for a setting that has GLES2.0 and remove it, GLES3.0 should bake your normal maps. atlas size, set it to 4068 (4k). finally, in lightmap static, increase the amount to the maximum.

if your models are missing UV maps, go to your modeling software, create uv map or uv unwraps and reimport them into unity.

and if all else fails, add a second light, do not check static, change the light and objects to a different layer and set the light to realtime and rebake with the light and objects hidden, once bake is finished, uhnide light and objects but make sure to set the culling mask to the needed layer and disable the layer in the cull mask for the other light

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 deraggi · Nov 21, 2016 at 11:43 AM 0
Share

I'm accepting this answer as it is great - thank you for this.

Unfortunately I was not able to resolve my issue yet - so I stick with Realtime Lightning for now.

avatar image Axemaster1234 deraggi · Sep 06, 2017 at 02:18 PM 0
Share

realtime lighting is good too, always use it as a last resort if all else fails

avatar image
0

Answer by Light_ · Oct 18, 2016 at 06:59 PM

Are the objects marked as Static?

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

Answer by deraggi · Oct 18, 2016 at 07:15 PM

Yes, all objects in my scene are Lightmap Static. See the screenshots of the stones.

The Gameobject is marked static as well

https://i.imgur.com/Dh4CBzw.png

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

Answer by Will_Dev · Oct 06, 2017 at 06:59 AM

Make the light source in the lightmapping setting your directional light

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

63 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

Related Questions

No lightmap after baking and black Shadows/Terrain. 0 Answers

baking a lightmap causes black textures 1 Answer

Unity lightmap glitch in simple scene 0 Answers

How to fix weird baking noise and lines ? 0 Answers

Baking lightmap crashes unity. 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