Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 dougdodd · Oct 30, 2014 at 09:01 AM · lightmappingcolor-space

How can I force lightmaps into linear color space?

In Unity 5 beta (Pro), while processing existing 4.6 scene for 5 I get the Lightmapper message (warning) that my lightmaps are generated in the wrong color space (gamma). In Player settings I have linear color space selected and my camera is using Player Settings. Docs say Lightmapper will detect this condition (which it does) and automatically correct it (which it does not). I am also using Lightmapper Extended, which I suspect may not fully support 5's new API (yet).

Any suggestions?

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 schmigel · Jul 09, 2015 at 03:34 PM 0
Share

Anyone got how to do that?

$$anonymous$$y case is the same. I have a simple scene with baked lights, and when I define linear colorspace in the player settings, the light starts rebaking again.

Thats when I got the message: LIGHT$$anonymous$$APS ARE BA$$anonymous$$ED IN THE WRONG COLOR SPAC$$anonymous$$ I know that!!

How can I fix that? Is that a bug?

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Tanshaydar · Oct 30, 2014 at 01:24 PM

When you are using linear lighting, all lighting and textures are linearized, which means that the values passed to the lightmapper also need to be modified. When you switch between linear lighting and gamma lighting, you will need to rebake lightmaps. The Unity lightmapping interface will warn you when the lightmaps are in the wrong color space.

This is the current documentation. I'm not sure if it is valid for Unity 5, but currently when you switch color space, you need to rebake lightmaps.

Comment
Add comment · Show 1 · 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 dougdodd · Oct 30, 2014 at 08:57 PM 2
Share

Thanks for the response, but your answer is not addressing the specific issue (most likely a bug in 5b). I didn't explain that I know how to use Unity, but yes, of course I tried rebaking (multiple times with different approaches), and the message persists.

Other obvious things I tried: I restarted Unity I restarted my computer I removed my L$$anonymous$$ extended which did nothing as I suspected (I realized it dealt with Beast and now we're using Enlighten). I cleared maps and rebaked I set my color space to linear in Player Settings.
I set my color space to gamma and back to Linear. I set my Camera to use Player Settings

I am also getting specular artifacts that are prohibiting me from baking with directional lights. Unity 5 looks GREAT and the standard shader is really cool, but some of the specular effects are hard to control: They look great in inspector and before baking, but in game they are ugly blotches of black (in occluded areas).

Still discovering and loving it!

Please (intelligent targeted) help: if you don't know how to help: tell me that! As for many other kindred spirits: Unity 5 is my future, and we're all discovering and need to know it's capabilities and limitations.

Doug

avatar image
0

Answer by patrickStU · Oct 30, 2014 at 05:55 PM

I think he did that. The same issue is occuring for me as well. I still shows, that the color space is wrong -- even after restarting Unity AND rebaking.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Linear Space Lightmaps 0 Answers

Shadows leftover from Lightmapping won't go away 2 Answers

Object pooling with lightmapped gameobjects 0 Answers

Baked LightMap issues 4 Answers

Preserve lightmap on instantiated object 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