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. Dismiss Notice

Disable Lightmapping Help

Discussion in 'General Discussion' started by SebastianMaj, Dec 5, 2015.

  1. SebastianMaj

    SebastianMaj

    Joined:
    Nov 28, 2013
    Posts:
    113
    Hello,

    I am trying to disable lightmapping since it takes 5 years each time I build any tips to get faster build time or have a system like before where all lights were done in realtime in the game.

    Thanks,
    Wolf_Tech
     
  2. Philip-Rowlands

    Philip-Rowlands

    Joined:
    May 13, 2013
    Posts:
    353
    One trick I've come across is to lower the lightmap resolution. Open the lightmapping window, and select the Object tab. Then select any object that has a MeshRenderer, and set the Scale in Lightmap field to something like 0.1 - or lower if necessary.

    Another way to do this is to create a new Lightmap Parameters, which has the resolution set to whatever value you decided to use, and then assign it to the objects.

    I've found those to be useful, and hopefully it solves the issue.
     
  3. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,299
    To disable automatic lightmap recalculation, in the "lighting" window (you can open it through window->lighting), on "scene" tab uncheck "auto" option (near "build" button), that will stop unity from trying to recalculate lightmaps every time you move a static mesh. To disable lightmapping completely, uncheck "precomputed realtime gi" and "baked gi".

    The only way to get better lightmap calculation speed is to get monster cpu and a lot of ram. Based on my experience with the engine, you'll need 20+ gigabytes of memory to bake complex scenes with default quality, and you'll want more than 6 cores. Lightmap calculation drains all system resources, pretty much, it cannot be performed on a cluster or render farm, and it only uses cpu, so having better GPU won't help. In case you have "auto" bake option enabled, having larger Gi Cache will help a lot (can be configured via Edit->Preferences->Gi Cache), when you're recalcualting portion of the scene. You'll still have to wait forever first time you're computing the scene, though.
     
  4. SebastianMaj

    SebastianMaj

    Joined:
    Nov 28, 2013
    Posts:
    113
    Wow I disabled it and it only takes 2 minutes to build and it still has nice quality, nothing is different. Thanks man! :D