Announcement

Collapse
No announcement yet.

Android vulkan dynamic shadow issue [VR]

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Android vulkan dynamic shadow issue [VR]

    I have an issue with mobile development for bigger scenes (city scale) and dynamic shadows.


    I'm using cascaded shadow maps and also far shadow cascade.
    Also I'm using the built-in SunSky for time change.

    My directional light is dynamic, the ambient light is static (only one dynamic source supported).

    Shadows tend to disappear upon your view direction, see following video for the short effect:


    The effect does not change when changing CSM distances, num of cascades (both, far and near), use contact shadows and so on.

    For me it looks like the engine disables receiving shadows on objects which are not "full" in the field of view.
    Anyone got a clue?


    P.s. this effect also exists on Android ES3.1, not only vulkan


    Edit:
    It seems to be, that when distances for dynamic shadows (and far shadows) are not too high (i.e. 10k and 100k (normal and far shadow)), it seems to work.
    Is it possible that the fov/frustum get's streched by this distance and therefore the angle is smaller and therefore the objects get culled from the shadow map ?

    Last edited by DanielInversini; 02-19-2020, 03:27 AM.

    #2
    Hi Daniell!

    I was running into similar issues. It must have something to do with the Dynamic Shadow Distance for moveable Lights.
    If you jump over to my slack channel we can discuss and develop stuff.

    My slack Link is here:
    https://FattyBull.com/resources/

    cheers

    Comment

    Working...
    X