Search Unity

LODGroups not working - ONLY in build

Discussion in 'General Graphics' started by montyjack, Aug 20, 2021.

  1. montyjack

    montyjack

    Joined:
    Jan 10, 2014
    Posts:
    43
    upload_2021-8-20_7-9-16.png

    That blurry mess is a ship from my game - it's being rendered at LOD level 2 even though I'm up close. This only happens in the build, not in the editor. In the editor it renders at full detail at this distance. Any idea why? I have made sure my max LOD level is 0 and my LOD bias is 1.5. I've been having major issues with LOD scripts in this project - when adding them to trees I found the CPU was spending 300ms every frame culling, but had no issues when billboarding trees. Please help, I have a demo coming up and I'm running into all sorts of issues with Unity (see also my issue with billboards rendering in front of fog, but again ONLY in the build)
     
  2. SamRock

    SamRock

    Joined:
    Sep 5, 2017
    Posts:
    250
    Did you ever find a solution? I m having exact same issue in unity 2021. But in 2019 everything works well! Both have same settings.



    I dunno what to do! :(
     
  3. c0d3_m0nk3y

    c0d3_m0nk3y

    Joined:
    Oct 21, 2021
    Posts:
    665
    warthos3399 and SamRock like this.
  4. SamRock

    SamRock

    Joined:
    Sep 5, 2017
    Posts:
    250
    You are right! The issue was caused by GAIA Material , not being able to update itself to 2021 and instead of having CUTOUT, everything showed up at SOLID material. I had to manually edit about 30 tree and plant material to fix them!
     
    c0d3_m0nk3y likes this.
  5. SamRock

    SamRock

    Joined:
    Sep 5, 2017
    Posts:
    250
    @c0d3_m0nk3y
    The issue remains on Build. Even though I modified all the materials.
    Little bit of search here, I found that my issue was because Unity 2021 likes to add Shader Graph package, when converted an older version of Unity Project!
    More here:
    https://forum.unity.com/posts/8274435/
     
    c0d3_m0nk3y likes this.
  6. c0d3_m0nk3y

    c0d3_m0nk3y

    Joined:
    Oct 21, 2021
    Posts:
    665
    SamRock likes this.