Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Another Enlighten Lightmapping Thread (Over Saturation)

Discussion in 'Global Illumination' started by glennpow, May 2, 2015.

  1. glennpow


    Jan 30, 2012
    I've seen plenty of threads where people are complaining about Enlighten (long bake times, artifacts, and general poor quality), but none of them seem to end with a clear concise answer as to why Enlighten seems to be such a pain for developers. I'm a programmer who has made games for 10 years, and created Unity game titles for mobile, PS3 and PS4, so I'd think that if I can't figure out Enlighten, it may be too complicated/fragile for the general developer audience. If there is in fact a way to make the new lightmapping system work flawlessly, I haven't been able to discover it.

    To simplify the reproduction case, I'm simply using Unity's RobotLab project (I made a new project, imported the addon with it's project settings, and haven't altered the included scenes at all). I would think with these default settings, Enlighten should work correctly.

    When I open an unmodified scene in the project, it looks correct, however, doesn't have any of the lightmaps wired up (I believe due to the fact that Unity doesn't serialize this linkage anymore). The lightmap images are actually built in the assets extracted from the unitypackage, but there isn't a way to tell Enlighten to use those.

    So, with realtime lighting, the scene looks correct:
    Screen Shot 2015-05-02 at 8.07.06 AM.png

    But then when I bake a scene using default settings such as these (baked resolution is 10 here for time's sake):
    Screen Shot 2015-05-02 at 8.07.26 AM.png

    ...the scene becomes over-saturated:
    Screen Shot 2015-05-02 at 7.51.07 AM.png

    I've tried all sorts of settings to fix this, but nothing seems to work. And furthermore when I look at the lightmap images created, they seem to also be over-saturated, but only in Unity's texture preview window (not the actual image file). Here's the image in Finder:
    Screen Shot 2015-05-02 at 7.52.58 AM.png

    ...but here's the same image shown in Unity's inspector:
    Screen Shot 2015-05-02 at 7.53.05 AM.png

    Is this due to HDR information being embedded in the image?
    Are other people able to import the RobotLab project and build lightmaps correctly? I'm having similar issues in my own game projects, so I feel that if I can solve them in Unity's test project, then I may have a shot at fixing mine.
    Please, any comments or suggestions will be appreciated, especially from someone knowledgeable from Unity.
    Thank you.
  2. QI


    Oct 27, 2012
    Hi there, we have the same problem...
    It can't dent that the new lighting system give us a great feedback, but new lighting system has confused me about a couple of days, and I still can't deal with each problem I faced(And I am very familiar with Unity, too).
    Well, baking is very strange, the quality after baking is weaker than the realtime, please tell me if you can figure out why this happens, Now I my project have to pause because I have to handle the new light system.