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

No shadow casting and some odd poly-fill issues

Discussion in 'PSM' started by cubusaddendum, Apr 23, 2014.

  1. cubusaddendum

    cubusaddendum

    Joined:
    Mar 23, 2014
    Posts:
    8
    Hi there,

    This video shows the problems I experiencing:



    In the process of exploring the lighting issue I reduced the scene to a single directional light position straight-down onto the map and deleting the baked shadows. As you can see, the ball never casts a shadow onto the floor.

    Also, the floor itself seems to disappear at times. Looks like an issue with the fragment shader, as this floor is only two triangles!

    None of these issues appear in the webplayer build this project was originally intended for.

    Are these known issues?

    Thanks.
     
  2. xxPillsxx

    xxPillsxx

    Joined:
    Oct 10, 2012
    Posts:
    31
    Hey, I haven't tried real time shadow in my project but people have seen the issue of objects random disappearing when looking at them at a certain directions, seen here and here.
    Also, I strongly advise you to go to Help -> Report a Bug.
     
  3. Astfgl

    Astfgl

    Joined:
    Jan 19, 2014
    Posts:
    86
    Check your quality settings. The first time I deployed my project on the Vita, I was missing shadows too, along with various lighting effects and I got lower resolution textures. Turns out the project's quality settings were set to Fastest by default for PSM, which intentionally gets rid of a lot of detail. Cranking up the quality to the same level as Standalone and Web Player fixed the issue for me.
     
  4. jesusluvsyooh

    jesusluvsyooh

    Joined:
    Jan 10, 2012
    Posts:
    377
    My shadows only appear now and then, might also be to do with the camera. :)
     
  5. cubusaddendum

    cubusaddendum

    Joined:
    Mar 23, 2014
    Posts:
    8
    Yeah I was also thinking this this morning, since my PSVita build of WillG's Stealth tutorial seems to throw shadows (albeit at around 10 fps). I'll try some quality setting changes tonight, and if I'm sure it's a bug then I'll report it as such.

    Thanks for your feedback everyone.
     
  6. cubusaddendum

    cubusaddendum

    Joined:
    Mar 23, 2014
    Posts:
    8
    Yeah, that sounds like my disappearing floor bug alright. Glad to see this forum is more lively that PSM's.
     
  7. GrahamReeves

    GrahamReeves

    Unity Technologies

    Joined:
    Apr 8, 2014
    Posts:
    30
    Hi cubusaddendum,
    I've been trying to re-create your missing shadows, do you have a custom fragment shader on the floor? or do you just mean the generic shader? Is there anything else special setup with your ball or the floor?

    If it could be possible to send me the scene with broken shadows it would help a lot :)
     
  8. cubusaddendum

    cubusaddendum

    Joined:
    Mar 23, 2014
    Posts:
    8
    Hi Graham,

    Thanks, I'll put the scene in my dropbox tonight and PM you the link.

    It's using the generic shader. When I played with the quality settings I managed to get the shadow working around the origin of the scene, but there's a clear boundary beyond which shadows stop appearing. I'm using a single directional light source, and have tried moving it around (and even adjusting the cookie size, although I'm not using a cookie) without affecting any change. Am I being dumb?
     
  9. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    [edit] see reply
     
  10. eriQue

    eriQue

    Unity Technologies

    Joined:
    May 25, 2010
    Posts:
    595
    Again - this is incorrect. Fixed function shaders are supported with Unity-for-PSM, on PS Vita.
     
  11. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Sorry, I didn't realise. I've been using the other vita - I guess they're different.
     
  12. cubusaddendum

    cubusaddendum

    Joined:
    Mar 23, 2014
    Posts:
    8
    Graham, I sent you a PM with links and info. Thanks in advance.
     
  13. cubusaddendum

    cubusaddendum

    Joined:
    Mar 23, 2014
    Posts:
    8
    Are to blocking incoming PMs by any chance?
     
  14. GrahamReeves

    GrahamReeves

    Unity Technologies

    Joined:
    Apr 8, 2014
    Posts:
    30
    Hi sorry, missed this PM, but got it now, and I'll have a look into it :)
     
  15. PeterD

    PeterD

    Joined:
    Feb 6, 2013
    Posts:
    120
    The other Vita?
     
  16. cubusaddendum

    cubusaddendum

    Joined:
    Mar 23, 2014
    Posts:
    8
    He means the other SDK - the native one. ;)
     
  17. PeterD

    PeterD

    Joined:
    Feb 6, 2013
    Posts:
    120
    Ah ok. :cool: