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. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

How to keep my 4.x lightmapping work in unity 5?

Discussion in 'Unity 5 Pre-order Beta' started by liyong79623, Feb 6, 2015.

  1. liyong79623

    liyong79623

    Joined:
    Feb 2, 2015
    Posts:
    14
    My game don't use any realtime light rendering. When i upgrade to unity 5, my scene's lightmaping does'nt work. it just become dark. Do anyone know any way to keep my 4.x lightmapping work in unity 5?

    I don't need any editing function. Just hope unity 5 keep compatible with 4.x lightmapping and don't touch it.

    we really don't want rearrange our lights setting. it is impossible for us.
     
  2. protopop

    protopop

    Joined:
    May 19, 2009
    Posts:
    1,545
    I was just trying to see if I could bring my .exr lightmap from unity 4 into Unity 5 but coudlnt figure it out (or even know if it can be done).

    Lightmapping isn't working correctly yet in Unity 5 (although i havent tried yesterdays new beta 22) - i read they are working on it so it will likely be working again soon.

    But if anyone knows if you can bring U4 lightmaps into U5 i'd be interested in that too.
     
    SilangQuan likes this.
  3. Jde

    Jde

    Joined:
    Oct 2, 2011
    Posts:
    139
    The last time I tried it just showed me an "Upgrade to Enlighten" button in the lighting window, but the U4 lightmaps were still usable. I haven't tried b22 yet though. Does it now remove the U4 lightmaps when you open a scene in U5?
     
  4. liyong79623

    liyong79623

    Joined:
    Feb 2, 2015
    Posts:
    14
    Thank you for reply.
    The unity 5 lightmapping compatibility is very confusing.The 4.x lightmapping seems working at first importing. But after I make some changes to my model or on other machines, the lightmapping doesn't work and seem very dark.
    I really don't know what happened.
    I found the old beast lightmapping chapter in 5.0 documents,but I can not find the old lightmpping UI.
    can unity make it clear the lightmapping compatibility between 4.x and 5?

    I find nothing in unity 5 upgrade notes.

    If unity 5 have no plan to support 4.x lightmapping. I must keep working in 4.x. It is important for us to make this decision as soon as fast.
    unity 5 have a new asset bundle mechanism. it is really cool. but if we keep to 4.x, we must rework the asset bundling code.
     
  5. Jde

    Jde

    Joined:
    Oct 2, 2011
    Posts:
    139
    According to Unity, Beast is gone and wont be coming back.

    Just tested beta 22 and it appears that scenes baked with Beast no longer work in Unity 5 either. It removes the lightmaps when you open the scene. They really don't want people using Beast!

    It's still possible to use the lightmaps though, with a bit of effort. You'll need to write a script to hook up the lightmaps manually (using LightmapSettings.lightmaps) and set the lightmap atlas settings on every Renderer in the scene (using lightmapIndex and lightmapScaleOffset). That way you can hook up any externally rendered lightmap, including ones baked with Beast.
     
  6. liyong79623

    liyong79623

    Joined:
    Feb 2, 2015
    Posts:
    14
    Thank you for your reply.I am really troubled by this problem recently.

    I think Unity show show warning about not supporting beast any more in theirs upgrade notes. After all beast is used in many scenes.

    If Unity 5 can not provide upgrade tools, I must keep to unity 4.x.
    we are developing for mobile platforms and real-time lighting is not that important for us.
     
  7. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,613
    Enlighten can bake lightmaps as well.
     
  8. liyong79623

    liyong79623

    Joined:
    Feb 2, 2015
    Posts:
    14
    I know it can。 But do I must reset my lights?
    If I must learn new lighting system and rearrange the lights, it need time.
    for many people, it is not big deal.But for us ,we must let our artist learn the new system.

    I just want to make it clear. Now I know Unity don't support 4.x lightmapping.
     
  9. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,613
    Sure. Well, while the lights you've placed in the scene should be picked up by Enlighten just as they were with Beast, you may need to iterate on the overall settings used by Enlighten, as well as the intensities of some of the lights. The intention in general is that rearranging your lights under Enlighten is much faster - you might not need realtime GI when your game is running on a mobile device, but you can take advantage of it in the Editor while your artist is setting things up to get feedback on changes in seconds instead of needing to bake for hours.

    If you're close to release, or otherwise on a tight production schedule, I would probably not recommend changing the version of Unity you are using unless you absolutely have to - this is true for any project and any version upgrade, you don't want to risk breaking things unless you know you have the time needed to fix them. Perhaps have your artist look at Enlighten with a view to using 5.0 on your next project?
     
    hippocoder likes this.
  10. liyong79623

    liyong79623

    Joined:
    Feb 2, 2015
    Posts:
    14
    Thank you for your reply.
    I like Unity 5, it brings many new features, but like what you say, I should keep it for my next project since our project is close to release.
    I will miss the new asset bundle update mechanism and many optimizations...