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

Black Details / Trees in Progressive CPU light bake - 2018.3.0f2

Discussion in 'General Graphics' started by enblomquist, Feb 8, 2019.

  1. enblomquist

    enblomquist

    Joined:
    Jul 25, 2012
    Posts:
    85
    Hi - I am currently light baking a scene using the Progressive CPU system. There seems to be an issue with certain (not all) placed details on our terrain (using the tree painter) are baking black. I've tried many different settings, but nothing seems to fix this.

    Yes, the UV map settings are correct, models are sound. It works on MOST of the details of the same mesh.

    Here is screenshot of the issue and my settings.

    bake issue.PNG
    Settings.PNG


    Thanks!
     
  2. enblomquist

    enblomquist

    Joined:
    Jul 25, 2012
    Posts:
    85
    Bump - I have a really hard time believing no one has any answers for this...
     
  3. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    Hey! Looks like texels underneath your trees are getting invalidated. Have you tried switching to Texel Validty scene view mode? If areas underneath the trees appear red, then you have a problem.

    The most common way to fix this, is to select the alpha material you use for your trees and check Enable Double Sided GI flag. Rebake, and the issue will go away.
     
    Last edited: Feb 18, 2019
    enblomquist and sharkapps like this.
  4. enblomquist

    enblomquist

    Joined:
    Jul 25, 2012
    Posts:
    85
    That absolutely fixed it! Thank you so much!

    I figured it had something to do with the alpha materials. Have a great day!
     
    kristijonas_unity likes this.
  5. enblomquist

    enblomquist

    Joined:
    Jul 25, 2012
    Posts:
    85
    For some reason this issue has popped up again - it seems to specifically happen with tree details on the terrain. If I add the prefab manually outside of the terrain - the object bakes properly...
     
  6. enblomquist

    enblomquist

    Joined:
    Jul 25, 2012
    Posts:
    85
    We are using Microsplat - but I am not finding anything on that potentially being an issue.
     
  7. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    If the issue reproduces only when using MicroSplat, then please contact the plugin developer for assistance.
     
  8. enblomquist

    enblomquist

    Joined:
    Jul 25, 2012
    Posts:
    85
    I contacted him - and he said it has no connection to details on terrain.
     
  9. enblomquist

    enblomquist

    Joined:
    Jul 25, 2012
    Posts:
    85
    baking.PNG
    Here you can see objects (tree details) are ignoring shadows completely - when they were previously working fine.
     
  10. enblomquist

    enblomquist

    Joined:
    Jul 25, 2012
    Posts:
    85
    More science! Here the flowers on the left are a static prefab - baking properly.

    All trees and the flowers on the left are tree details painted onto the terrain.

    They are casting shadows onto the terrain - but no cast shadows on themselves!

    Shadowmask debug view demonstrates this further.

    SCIENCE.PNG shadowmask2.PNG