-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
amd gpu make shadows are misplaced on a very large plane #6542
Comments
Could you test with this: #6543 ? I don't think it will affect this one but maybe... |
this seems to be due to #6384 |
Ah... I think it was weird stuff like this which was why I didn't use the light's translation and commented as such. And when I made an attempt to achieve the same kind of thing, I instead adjusted the left/right/top/bottom/near/far. |
I can't reproduce this on Manjaro with a 2070 SUPER.
Looking at the code, I wouldn't expect that behavior to change on different hardware, but it would be great if people could test that. |
I can't reproduce it either on Fedora with an Intel integrated GPU |
Can't reproduce. Both after the latest commit c4e791d, or going back ~5 commits. Windows 11 |
It can be reproduce in my computer, It's seems about AMD GPU Windows 11 |
My observations:
|
Tried the commit before that one was merged, still broken. |
After a bunch of back and forth on discord, this seems to be some sort of rounding or floating point precision issue with the absolutely massive plane that the many_foxes example uses. @robtfm reproduced the issues on a 3070 with a 500000000 sized plane, while the current 500000 plane causes issues on AMD GPUs. Changing it to a 5000 sized plane seems to fix it. |
# Objective Shadows are broken on many_foxes on AMD GPUs. This seems to be due to rounding or floating point precision issues combined with the absolute unit of a plane that it's currently using. Related: #6542 I'm not sure if we want to close that issue, as there's still the underlying issue of shadows breaking on overly large planes. ## Solution Make the plane smaller.
fixed in above pr |
reopening issue as we should triage why nvidia and amd are different. |
) # Objective Shadows are broken on many_foxes on AMD GPUs. This seems to be due to rounding or floating point precision issues combined with the absolute unit of a plane that it's currently using. Related: bevyengine#6542 I'm not sure if we want to close that issue, as there's still the underlying issue of shadows breaking on overly large planes. ## Solution Make the plane smaller.
Bevy version
0.8, main 9b56b54 (Nov 10, 2022)
Relevant system information
Windows 11
AdapterInfo { name: "AMD Radeon RX 6600", vendor: 4098, device: 29695, device_type: DiscreteGpu, driver: "AMD proprietary driver", driver_info: "22.9.2", backend: Vulkan }
What you did
Ran
cargo run --release --example many_foxes
and resized the window by grabbing the bottom right with the mouse.What went wrong
Shadows on the foxes are misplaced sometimes.
The text was updated successfully, but these errors were encountered: