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

The gap between Terrain and Sky

Discussion in 'World Building' started by khalidfathy, Nov 26, 2020.

  1. khalidfathy

    khalidfathy

    Joined:
    Mar 12, 2018
    Posts:
    6
    Looks like I am the only one having this problem.
    I need to eliminate the gap between the terrain and sky (attached). All tutorials are using mountains. I can't use because it is a representation of real plain. I tried placing billboards on a distance but they couldn't hide the gap.
    I am using Physically Based Sky on Unity 2019.4 HDRP.

    Any ideas?
     

    Attached Files:

    samoBroceliande likes this.
  2. HIBIKI_entertainment

    HIBIKI_entertainment

    Joined:
    Dec 4, 2018
    Posts:
    594
    You could use a basic fog volume.

    -Set your base height to terrain Min
    -Max height to terrain/building (or creative ) max -set your dog max distance cull to that of your camera's and it should blend.

    If you don't want your buildings to " fade in colour to the sky" then you can set the first fog distance beyond the total scale of your scene size.

    You shouldnt get much of a performance hit either.
     
  3. Bezoro

    Bezoro

    Joined:
    Mar 16, 2015
    Posts:
    133
    There are many ways of solving that, but all of them boil down to the same thing, put something there to hide it.
    If you absolutely need your floor to be flat like that you can just make it much bigger.
    You could use your own custom skysphere.
    You could use fog.
    You could use meshes like mountains (although you did say that you can't do that, for whatever reason.)
    You could increase the height of your terrain.

    It all boils down to "hide it".
     
  4. samoBroceliande

    samoBroceliande

    Joined:
    Apr 24, 2020
    Posts:
    2
    finally i found someone who got the same problem as me :D
    what is your cliping distance far for the camera ? : i went at 2000 but my need would be 6000...