Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Lightmapping indexes and static batching

Discussion in 'Global Illumination' started by hypnoslave, Jun 16, 2021.

  1. hypnoslave

    hypnoslave

    Joined:
    Sep 8, 2009
    Posts:
    436
    I have large scenes that are separated into smaller groups that I set inactive when they're not visible. Lightmapping is causing my draw calls to go through the roof, because Unity is mapping together objects that are split across the entire scene.

    I have tried to manually assign custom Lightmap Parameters to objects that are in the same area. These parameters have a matching "system tag" so each area's objects belong to the same system. However this has done nothing to the baking process, unfortunately. Unity still randomly groups objects together.

    Is there anything that can be done about this?
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,631
    I think the baked tag works instead of the system tag.

    Other than that, they were working on some feature to try and put meshes in the same area in the same lightmap, but they never finished it.
     
  3. hypnoslave

    hypnoslave

    Joined:
    Sep 8, 2009
    Posts:
    436
    BAH! You're right! Thank you! let me try that..
     
  4. hypnoslave

    hypnoslave

    Joined:
    Sep 8, 2009
    Posts:
    436
    yup. my bad. p.i.c.n.i.c
     
    AcidArrow likes this.