-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Many Foxes shadows vibrate #7393
Comments
Is this fixed by #7383? I fixed an ambiguity there that is very plausibly responsible. |
I think this might be fixed by #7339 no? |
I looked at this the other day - I got the feeling they weren’t vibrating, it’s just ‘aliasing’ (it visually looks like something other than it is) because the shadows are low resolution, the positions of the shadow map texels are stable, and the foxes cast shadows that move across a small number of these texels so the texels pop in and out of shadow. I may very well be wrong but that is my guess. @danchia would you be up for looking into this with respect to #7362 ? |
This is what it looks like to me. |
I tweaked the cascades settings, and things look much better. |
@danchia on Discord, @JMS55 had the idea that we could perhaps calculate the screen space aabb of the visible objects in the view frustum and then build cascades covering that. I’ve seen ideas previously about cascade distribution and things don’t stop at implementing ’basic’ CSM. :) I don’t remember the papers right now as I haven’t thought about post-CSM for a long time. I feel like a quality slider bounding the worst screen/shadow texel size ratio or something could be useful… or at least to start with understanding the distribution of shadow map resolution over view distances, could be a useful approach to thinking about the shadow quality. Plus implementing the Witness PCF. :) superdump@7025bcb |
Now I remember - Sample Distribution Shadow Maps: #4253 |
Bevy version
happens after the cascaded shadow map pr c3a4682
Relevant system information
What you did
ran the
many_foxes
exampleWhat went wrong
The shadows feel like they are vibrating. Looking at a freeze frame the shadows seem to be much lower resolution than before.
After CSM
![image](https://user-images.githubusercontent.com/2180432/215248559-0daadc13-fc96-47df-93ed-46add7624a85.png)
Before CSM
![image](https://user-images.githubusercontent.com/2180432/215248611-8672454d-c436-466a-aa07-255f54415d8c.png)
The text was updated successfully, but these errors were encountered: