-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 stress test example has very visible shadow artifacting #5118
Comments
Adding this to 0.8, as this would be a pretty serious shadow rendering regression. |
not reproduced on macOS. A vulkan issue? |
This seems isolated to specific Linux drivers, and may be something upstream of Bevy. Marking down as platform specific. |
Grahpics driver info inxi -G
Graphics:
Device-1: AMD driver: amdgpu v: kernel
Display: x11 server: X.Org 1.20.13 driver: amdgpu,ati
unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz
OpenGL:
renderer: AMD RENOIR (DRM 3.46.0 5.18.6-051806-generic LLVM 12.0.0)
v: 4.6 Mesa 21.2.6 |
Clearing from the milestone as this appears to be driver-driven. @colepoirier, have you updated your graphics drivers? |
Indeed. My graphics drivers are up to date with the latest release. Unfortunately testing with dev mesa drivers isn’t something I can do without taking a pretty permanent dependency on them; last time I did this I ended up having to reinstall my whole OS to get back to released mesa deivers because of how apt package depencies seem to work 😢 |
I also see this, using the v0.8.0 tag, on Windows with an AMD integrated GPU (specifically a Surface Laptop 3, which claims to have some sort of "Microsoft Edition" Ryzen), with both the Vulkan and Dx12 WGPU backends. The relevant log output:
A graphics debugger shows that the shadow map looks reasonably unscathed, though it has some pretty heavy banding along the floor plane that corresponds to the shape of the shadow artifacts. Maybe some sort of precision issue that only shows up on some hardware and/or drivers? I've tried tweaking the parameters of the light and camera but haven't found any smoking guns- let me know if there's anything else I can try or collect! |
Experiencing this in a Macbook Pro 2016 on INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon Pro 450", vendor: 0, device: 0, device_type: DiscreteGpu, backend: Metal } |
This issue also happens on Win 11 with RX590 on c4e791d
|
shadow_biases is meant to look like that unless you adjusted the biases to appropriate values. |
My bad, the rest still applies though, esp. the many_foxes example. |
This was fixed for |
Bevy version
bevy main 9eb6928
[Optional] Relevant system information
cargo 1.61.0 (a028ae4 2022-04-29)
stable-x86_64-unknown-linux-gnu
linux mint 20.3 5.18.6-051806-generic
AdapterInfo { name: "AMD RADV RENOIR", vendor: 4098, device: 5708, device_type: IntegratedGpu, backend: Vulkan }
What you did
Run
cargo r -r --example many_foxes
What went wrong
Foxes closes to the camera have grey bar artifacts instead of shadows like the foxes further from the camera:
The text was updated successfully, but these errors were encountered: