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. Dismiss Notice

Shadow peter-panning problem in mobile

Discussion in 'Editor & General Support' started by cs_can, Jul 16, 2014.

  1. cs_can

    cs_can

    Joined:
    Aug 15, 2013
    Posts:
    12
    I know there are some tricky about the shadow acne and peter panning. I do not mind the bad effect of shadow acne so I set the Shadow Bias value closed to zero. When it plays in Editor, there is no problem. When I export to android platform, whatever I set the bias value, 0.1, 0.05, 0.01 or even 0, the shadow shows disconnect between my leg object and the ground. I have tried all quality settings and shaders. However, the problem only exists in mobile platform, it shows perfectly in Unity Editor, so I am curious whether it is my mobile problem (Samsung Galaxy Note3, there is a serious shadow problem in previous version of Unity), or only the problem in my setting.

    No problem in editor:
    Screen Shot 2014-07-16 at 5.58.20 PM.png

    Peter-panning in mobile:
    Screen Shot 2014-07-16 at 5.58.45 PM.png

    Anyone solved it before?Any recommendation is welcome.
     
    Last edited: Jul 16, 2014
  2. MakeCodeNow

    MakeCodeNow

    Joined:
    Feb 14, 2014
    Posts:
    1,246
    Are you using a 24 bit depth buffer? If not, try that.
     
  3. cs_can

    cs_can

    Joined:
    Aug 15, 2013
    Posts:
    12
    I checked that it is set by default.

    Screen Shot 2014-07-21 at 9.44.43 AM.png
     
  4. MakeCodeNow

    MakeCodeNow

    Joined:
    Feb 14, 2014
    Posts:
    1,246
    Sad to say it might be a hardware/driver issue. Can you try on iOS or a different Android device?
     
  5. cs_can

    cs_can

    Joined:
    Aug 15, 2013
    Posts:
    12
    You are right. It only happens in Samsung Galaxy Note3. There is no problem in Galaxy S4. I think it is an extension of the shadow issue which just said to be fixed in version 4.5.
     
    Last edited: Aug 3, 2014
  6. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Report a bug regardless just in case if you can to be doubly sure it'll get fixed for you. Hopefully.
     
  7. cs_can

    cs_can

    Joined:
    Aug 15, 2013
    Posts:
    12
    I navigated the unity site for an hour, still don't know how to report a bug. So sad .....

    The problem still exists in 4.6b17
     
  8. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    It's done within the unity editor -> report a bug