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. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

Shadows working incorrectly with static meshes

Discussion in 'Unity 5 Pre-order Beta' started by Discord, Nov 27, 2014.

  1. Discord

    Discord

    Joined:
    Mar 19, 2009
    Posts:
    1,008
    Hello!

    I ran into a bit of a weird problem today.

    This is how I would expect shadows to look, and it works all fine when I'm standing on a mesh that isn't static.


    However, when the mesh is static, the shadow looks like so:


    Here's one more picture of the issue:



    Has anyone else run into this issue? Or have any suggestions on what I could do to fix it? I'm at a loss after trying for a while.
     
  2. Discord

    Discord

    Joined:
    Mar 19, 2009
    Posts:
    1,008
    Changing the Directional Mode for the GI seemed to solve my issue somehow.
     
    p87 likes this.
  3. AustinRichards

    AustinRichards

    Joined:
    Apr 4, 2013
    Posts:
    321
    Could DEFINITELY be an issue with UVs. On import of the model check the create lightmap UVs
     
  4. PhobicGunner

    PhobicGunner

    Joined:
    Jun 28, 2011
    Posts:
    1,813
    Nope. UVs have nothing to do with realtime shadows.
    His issue was that realtime shadows were being added on top of baked shadows, resulting in a strange "projector" effect (as if the shadow was being projected through geometry).
    The fix was to change to a mode which, I assume, had better support for mixing static+realtime shadows.
     
  5. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    @Discord does the shadow on the backside of the mesh move when the character moves?
     
  6. Discord

    Discord

    Joined:
    Mar 19, 2009
    Posts:
    1,008
    Yes it does. The shadow was essentually mirrored onto the surfaces that you can see in the images.
     
  7. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    Please file a bug report.