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

Question Lightening static and dynamic objects

Discussion in 'Global Illumination' started by dworack, Sep 30, 2023.

  1. dworack

    dworack

    Joined:
    Jul 4, 2019
    Posts:
    4
    Hi,

    I've a scene where I have 3 dynamic objects (2 players + ball) and all others are static (200+ objects).
    I'm trying to figure out what is the best way to set directional light in such case. Should I set it to mixed mode and it will be used by static and dynamic objects or I should copy directional light and set one for Realtime and another to Baked mode? Will directional light set to baked also lightiening dynamic objects?

    The game is for mobile so I'm looking for the most optimized solution. Any tips appreciated.
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,001
    Set directional light to mixed, have the tennis court (I'm assuming it's a tennis game?) to static and bake lighting. Place light probes in your scene.
     
    dworack likes this.
  3. dworack

    dworack

    Joined:
    Jul 4, 2019
    Posts:
    4
    Thanks for answer, Yes, It's tennis game. I've the stadium, court, and 200+ fans (based on Mesh Renderer).
    Ok, so I assume that setting to mixed mode will lighting both static and dynamic objects? What will be probes purpose in such case? (sorry I'm new to lighting).


     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,001
    The probes help with the lighting of the dynamic objects.
     
    dworack likes this.
  5. dworack

    dworack

    Joined:
    Jul 4, 2019
    Posts:
    4
    I see, so I should still set directional light (I have 3 now) to mixed mode to lighting dynamic objects + dynamic object will be lighting be probes, By the way you mean reflection probe or light probe group? I can see such two options only
     
  6. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,001
    I meant light probes within a light probe group, but you will probably need at least one reflection probe placed somewhere in the middle of the stadium as well.
     
    dworack likes this.
  7. dworack

    dworack

    Joined:
    Jul 4, 2019
    Posts:
    4
    ok, thanks for help, will play around with that