Search Unity

Ambient occlusion not working for Terrain trees

Discussion in 'Global Illumination' started by redcurry79, Apr 1, 2022.

  1. redcurry79

    redcurry79

    Joined:
    Oct 26, 2020
    Posts:
    36
    Here is a screenshot of my Terrain with painted pine trees, and one non-painted tree (foreground) for comparison:

    Screen Shot 2022-04-01 at 10.56.14 AM.png

    As you can see, the painted trees on the Terrain show no ambient occlusion whereas the non-painted (game object) tree shows ambient occlusion.

    Is this expected for Terrain trees, or am I missing some setting? How can I have ambient occlusion on my painted trees?
     
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    In its current implementation, trees painted on the terrain (along with other painted details) cannot be lightmapped. They can only receive indirect lighting from light probes.

    To achieve the look that you are after, you'd have to supply your own ambient occlusion texture, or use a screen space solution, such as SSAO.
     
    redcurry79 likes this.
  3. redcurry79

    redcurry79

    Joined:
    Oct 26, 2020
    Posts:
    36
    Thank you. Is this described somewhere in the manual?
     
  4. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366