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

Ambient Occlusion between Terrain & Scene Game objects?

Discussion in 'Global Illumination' started by Vizition, Oct 6, 2017.

  1. Vizition

    Vizition

    Joined:
    Aug 10, 2017
    Posts:
    5
    Hello

    I have been baking my lights with baked global illumination and Ambien occlusion activated. All my static scene objects have been lightbaked and received AO nicely. But there is one problem; there is no Ambient Occlusion between my gameobjects and my terrain (see picture below)
    upload_2017-10-6_16-0-37.png
    As you can see, there is a clear distinction between gameobjects and terrain, there are no black or dark spots.
    Why is that? Both are static. Is it because Terrain is not a child to the game objects? That is all i could see being the problem

    Settings for lightmapping etc are below. Anyone having the same problem?

    Lightmapping settings:
    Terrain(static) settings:
    upload_2017-10-6_15-58-50.png
    Lightmap Settings:
    upload_2017-10-6_15-58-18.png
    I have lightbaked my scene with "enlighten"
     

    Attached Files:

  2. Adam-Bailey

    Adam-Bailey

    Joined:
    Feb 17, 2015
    Posts:
    232
    How big is your terrain? Usually terrain has a really low lightmap resolution.
     
  3. Vizition

    Vizition

    Joined:
    Aug 10, 2017
    Posts:
    5
    Thanks for answering

    The terrain width and height is 80 and 105 respectively. Lightmap paramater is set to be Default-HighResoltion, although scale in lightmap is 0.0512 and of course set to static
     
  4. Adam-Bailey

    Adam-Bailey

    Joined:
    Feb 17, 2015
    Posts:
    232
    That lightmap scale is probably the issue, along with maybe the overall lighting conditions.
     
  5. Ziplock9000

    Ziplock9000

    Joined:
    Jan 26, 2016
    Posts:
    360
    Did you find an answer to this? What values worked for you?