Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Random Dark Objects

Discussion in 'Global Illumination' started by DazBailey, Apr 21, 2015.

  1. DazBailey

    DazBailey

    Joined:
    Jul 7, 2014
    Posts:
    14
    dark2.png dark.png Hey Guys,

    having some weird issues as of late with my light baking, Some objects in my scene (Despite being the same model) are randomly baking dark!

    I've attached an example.

    There is one directional light, as the scene is an exterior. The objects are within a reflection probe too. Lighting is set to real-time with everything static. I've been messing with the Max UV Angle / Distance to see if there is an issue with the map maybe? Confused!

    Any help / guidance would be great!

    Thanks!
     
    Last edited: Apr 21, 2015
  2. DazBailey

    DazBailey

    Joined:
    Jul 7, 2014
    Posts:
    14
    Light.jpg I've added 4 point lights surrounded the bases which has lit up the models, but its obviously not correct now as the light source doesn't fit the scene? No idea what's going on!
     
  3. SpiriTx

    SpiriTx

    Graphics QA

    Joined:
    Apr 12, 2012
    Posts:
    252
    Please make sure that Lightmapping UVs are generated on the mesh.

    You can also check if UV charts are all correct in scene view by changing visualisation mode to GI > UV charts
     
  4. DazBailey

    DazBailey

    Joined:
    Jul 7, 2014
    Posts:
    14
    Yeah I have, they are identical models, some are baking some aren't! UV Charts look fine too. If I raise it from below its fine, so is there an issue with shadow casting maybe?

    chart.png irradiance.png

    Looks like the irradiance channel is the issue?
     
  5. SpiriTx

    SpiriTx

    Graphics QA

    Joined:
    Apr 12, 2012
    Posts:
    252
    Could you please report a bug with this scene attached?
     
  6. DazBailey

    DazBailey

    Joined:
    Jul 7, 2014
    Posts:
    14
    Submitted :)

    Ref 691703
     
    Last edited: Apr 23, 2015
  7. Potaski

    Potaski

    Joined:
    Aug 21, 2013
    Posts:
    52
    I encountered this problem, too. And I found that reducing the Backface Tolerance value in GI parameters could make it happen less often (still can't get rid of it though). You can try this before Unity's fix.
     
  8. Elzean

    Elzean

    Joined:
    Nov 25, 2011
    Posts:
    584
    Hi, i have this problem too. Some objects are randomly dark while the same object looks fine in other areas. The problem is obvious in the irradiance view.

    Is this still consider a bug a do i need to adjust some settings ?
     
  9. SpiriTx

    SpiriTx

    Graphics QA

    Joined:
    Apr 12, 2012
    Posts:
    252
    At least in the scene reported by DazBalley in case #691703, I didn't manage to find any reason for such behaviour, so l forwarded that one to devs.

    It's hard to say about other cases, but it might be related.