Search Unity

[Unity 3] Single lightmap to many objects

Discussion in 'Editor & General Support' started by marina benites, Aug 11, 2010.

  1. marina benites

    marina benites

    Joined:
    Aug 3, 2009
    Posts:
    4
    How to make a single lightmap texture to many different objects using bake lightmap in Unity3?
     
  2. marina benites

    marina benites

    Joined:
    Aug 3, 2009
    Posts:
    4
    is a big scene with many objects and materials, but need to use little memory. I can't use a single lightmap texture for a single object.
     
  3. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    just setup all objects and configure the density, then switch the lightmapping to single from dual lightmapping and let it calculate. it will then generate as many lightmap textures as required to cover the scene with the texel density you defined
     
  4. Kokumo

    Kokumo

    Joined:
    Jul 23, 2010
    Posts:
    416
    dreamora, i thought the lightmapping of Unity only works on terrains... o_O looks like i have to explore a little more XD.
    Thanks.
     
  5. marina benites

    marina benites

    Joined:
    Aug 3, 2009
    Posts:
    4
    Ohlll
    texels per world unit is the solution.
    But now I found another problem. I can not see more than three lights in the scene. Thus it is difficult to set the lightmap
     
  6. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
    Use Deferred Rendering. Set that up in the Player Settings.
     
  7. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    in which way would the lights impact the lightmaps?
    Did you by error place normal lights, not "bake lights" for the lightmapping?
    Or do you mean for checking in the editor when placing all of them?

    later when you use it you technically wouldn't even need lights if you don't want to, just set the shadow range in the quality settings to 0 and the dual lightmap will work up to your nose :)
     
  8. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
    He just meant for previewing before he bakes.
     
  9. marina benites

    marina benites

    Joined:
    Aug 3, 2009
    Posts:
    4
    Tanks aNTeNNa trEE! this is it!
    gracias!! =D