Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, SBGuy, TipmyPip, ozgur), 923 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
PSSM disappearing at certain camera / sun angles #401888
05/25/12 15:39
05/25/12 15:39
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
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?


no science involved
Re: PSSM disappearing at certain camera / sun angles [Re: fogman] #401889
05/25/12 15:49
05/25/12 15:49
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
Originally Posted By: fogman
shadowmaps are shown, but they are not rendered


Not sure what you mean by this.

Re: PSSM disappearing at certain camera / sun angles [Re: lostclimate] #401890
05/25/12 16:01
05/25/12 16:01
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline OP
Expert
fogman  Offline OP
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
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:








no science involved
Re: PSSM disappearing at certain camera / sun angles [Re: fogman] #402054
05/29/12 12:32
05/29/12 12:32
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
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

Re: PSSM disappearing at certain camera / sun angles [Re: lostclimate] #407012
09/04/12 17:34
09/04/12 17:34
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline
Expert
oliver2s  Offline
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Did you find any fix for this problem in the meantime?

Re: PSSM disappearing at certain camera / sun angles [Re: oliver2s] #407749
09/18/12 22:13
09/18/12 22:13
Joined: Aug 2002
Posts: 2,183
Germany, BaW�
Rondidon Offline
Expert
Rondidon  Offline
Expert

Joined: Aug 2002
Posts: 2,183
Germany, BaW�
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.

Re: PSSM disappearing at certain camera / sun angles [Re: Rondidon] #407754
09/18/12 23:44
09/18/12 23:44
Joined: Feb 2012
Posts: 371
Dico Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
i have this problem too in shadow_stencil


Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1