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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity terrain becomes semitransparent in build

Discussion in 'General Graphics' started by ffasce, Aug 5, 2015.

  1. ffasce

    ffasce

    Joined:
    Jul 3, 2015
    Posts:
    8
    Hello there,
    I'm making a simple VR scene in Unity, and I'm currently stuck with a super weird graphics problem (which looks not to be VR related, because it happens even with a standard camera).

    I'm using the Unity terrain with a speedtree tree model, grass, some rocks. Nothing fancy, pretty basic stuff.
    While working inside the editor, everything looks super cool:

    editor.png

    The problems come when I build the game. The terrain looks as if it was transparent or something, and I cannot figure out why. This is what I get. Look at the roots creeping out the tree on the right side, or the rock on the left side. It's weird.

    build.png

    Do you have any advice about what it can be and how to solve it?
     
  2. ffasce

    ffasce

    Joined:
    Jul 3, 2015
    Posts:
    8
    Could it be something related to the global illuminations settings? Do the GI play well with the unity terrain?
     
  3. Emre_U

    Emre_U

    Joined:
    Jan 27, 2015
    Posts:
    49
    This was a bug from standard terrain shader, especially when u use them with trees. Switch to legacy diffuse or better yet upgrade your unity. Because I think I have read that it is solved.
     
  4. ffasce

    ffasce

    Joined:
    Jul 3, 2015
    Posts:
    8
    Well, I've got the latest Unity version. That's strange!
     
  5. Xoduz

    Xoduz

    Joined:
    Apr 6, 2013
    Posts:
    135
    I had the same problem not long ago, and my "fix" was to export the project (or all the strictly needed pieces of the project anyway) and reimport it into a new, clean project. No idea what was ultimately causing the issue though.
     
  6. ffasce

    ffasce

    Joined:
    Jul 3, 2015
    Posts:
    8
    At last, it seems to be solved just by unchecking the HDR checkbox on the camera.