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

GI not working on static terrain's trees

Discussion in 'Unity 5 Pre-order Beta' started by camel82106, Nov 14, 2014.

  1. camel82106

    camel82106

    Joined:
    Jul 2, 2013
    Posts:
    304
    Hello,
    I have tried to create an unity terrain (it's static). I have placed there conifer speedtrees.

    For GI I have set realtime sky to true. Directional light mode is set to realtime but that's not important.

    But know if I change intensity of sky light. Only terrain lighting alone is changing. Trees are still in same intensity.
    I have tried to set tree as static too. But that doesn't changed anything.
    If I disable directional light so no lights except GI is lightning scene. Trees still get some light from GI. But it doesn't change intensity with sky light slider?

    After I add light probe all trees start to be affected by GI. When changing intensity of sky light too.
    So at least it looks good with light probe.

    I would await that trees will behave as static objects? (I have tried to disable wind on speedtree too).
    In fact they are affected by GI at least weird.

    I'm wrong?

    Regards
    Peter
     
  2. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    @zeroyao recently added an option for baking lightprobes for the trees. It appeared in beta 13.
     
    ROBYER1 likes this.
  3. camel82106

    camel82106

    Joined:
    Jul 2, 2013
    Posts:
    304
    Yes that's nice, but still not really sure. Why terrain trees that are part of static terrain. Are not light by realtime GI.
    Why I need to bake lightprobes? They are not dynamic objects.

    If I try same thing with static cube it's lit and it changes intensity if I change ambient intensity.
    Or are trees always interpreted as dynamic objects?
     
  4. Roni92

    Roni92

    Joined:
    Nov 29, 2013
    Posts:
    225
    their billboards will be affected too?
     
  5. Kuba

    Kuba

    Unity Technologies

    Joined:
    Jan 13, 2009
    Posts:
    416
    The reason for trees to use light probes is that they have a very big surface area, so would need huge amounts of texture memory if they were using lightmaps.

    The light probes that are automatically generated for each tree will however be updated realtime (for all the lighting inputs marked as realtime) or baked. So the lighting will be consistent.
     
    sqallpl and shkar-noori like this.
  6. camel82106

    camel82106

    Joined:
    Jul 2, 2013
    Posts:
    304
    Thank You for comprehensive explanation. That make sense.

    Regards
    Peter
     
    Last edited: Nov 21, 2014
  7. zeroyao

    zeroyao

    Unity Technologies

    Joined:
    Mar 28, 2013
    Posts:
    169
    Hi,

    Yes, if you choose to let billboards be affected (new import settings). However this would break billboard batching so it is off by default. When it is off billboards are rendered with a default light probe (with the sky light and baked directional lights).
     
  8. Roni92

    Roni92

    Joined:
    Nov 29, 2013
    Posts:
    225
    Batching is off, that means one drawcall for each billboard?