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

Direction Specular Baked causes Black grass

Discussion in 'Global Illumination' started by AustinRichards, May 21, 2015.

  1. AustinRichards

    AustinRichards

    Joined:
    Apr 4, 2013
    Posts:
    321
    So when I have a terrain and I add some grass to it, set the light to mixed/baked, and have lightmaps set to directional specular, the grass becomes very very dark, nearly black.

    Directional:


    Directional Specular:


    This happens with even the legacy terrain shaders. Only happens with baked and directional specular. Definitely need this fixed because I can't use directional specular till it is fixed. This also only happens in Deferred rendering. Legacy differed has same issue, but is slightly brighter. Using Nividia GTX 560, windows 10, unity 5.1.

    How to reproduce:
    Set to deffered & Directional Specular. Make terrain, apply grass texture & paint it on. Set terrain to static. Set light to mixed/baked. Bake lighting.

    Anyone else have this issue?
     
  2. newmonuments

    newmonuments

    Joined:
    Oct 21, 2014
    Posts:
    15
    YES! this is a catastrophic bug in the directional spec mode.
    Switching to directional "solves" it but removes the ability to have specularity. Also, you may fix it by raising your precompute res to like a million if you have a supercomputer (this is unity's suggestion). see bottom of this page:

    http://docs.unity3d.com/Manual/LightmappingDirectional.html

    Why is no one else talking about this issue?

    here's where I run into the problem.
    http://forum.unity3d.com/threads/black-spots-with-precomputed-realtime-gi.349300/
     
  3. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    This is likely caused by the fact that the Enlighten cluster centers are occluded by the grass. In 5.3 the clustering scene view mode can help you place the objects so they are not occluding the center. I am going to back port that to 5.2.
    Fixing the algorithm to take occlusion of the whole cluster area into account is difficult and is not something we can fix in the near term.
     
    minhdaubu2 likes this.
  4. Brenden-Frank

    Brenden-Frank

    Joined:
    Aug 5, 2012
    Posts:
    110
    Is there a work-around for this?