PSSM disappearing at certain camera / sun angles

Posted By: fogman

PSSM disappearing at certain camera / sun angles - 05/25/12 15:39

We´ve a problem with pssm.
When sun_angle.tilt is low, the shadows are disappearing at certain camera angles.


sun_angle.tilt is low, shadows are visible:


sun_angle.tilt is low, camera angle has changed, shadows are not visible:


sun_angle.tilt is high, shadows are visible:


sun_angle.tilt is high, camera angle has changed, shadows are visible:



If I comment #define DEBUG_PSSM in the shadowmaps are shown, but they are not rendered. What could be the reason for this behavior?
Posted By: lostclimate

Re: PSSM disappearing at certain camera / sun angles - 05/25/12 15:49

Originally Posted By: fogman
shadowmaps are shown, but they are not rendered


Not sure what you mean by this.
Posted By: fogman

Re: PSSM disappearing at certain camera / sun angles - 05/25/12 16:01

In shadows.c there is a define, called #define DEBUG_PSSM.
If you comment that in, the shadowmaps are shown as bmaps.
I can see the shadows on these rendered bmaps, but the won´t appear in the level:






Posted By: lostclimate

Re: PSSM disappearing at certain camera / sun angles - 05/29/12 12:32

Ah, so the depths are read and compared, just not projected at certain angles... That sucks. If i knew a little more about complex shaders I'd help
Posted By: oliver2s

Re: PSSM disappearing at certain camera / sun angles - 09/04/12 17:34

Did you find any fix for this problem in the meantime?
Posted By: Rondidon

Re: PSSM disappearing at certain camera / sun angles - 09/18/12 22:13

Yes, it was caused by a shader that we used for the fishes. It influenced the PSSM shadows and caused the bug. It works fine and without problems now.
Posted By: Dico

Re: PSSM disappearing at certain camera / sun angles - 09/18/12 23:44

i have this problem too in shadow_stencil
© 2024 lite-C Forums