-
-
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
Regression with custom projections #16856
Comments
I can't reproduce either
on Mac (m1) or Windows 11 (4080). I also tried I think we need linux people to test. |
FYI @musjj |
Does this not reproduce for you?: https://github.com/musjj/nearest_filter_bug (try to resize the window resolution to odd numbers). This is my adapter info: AdapterInfo {
name: "AMD Radeon RX 550 / 550 Series (RADV POLARIS12)",
vendor: 4098,
device: 27039,
device_type: DiscreteGpu,
driver: "radv",
driver_info: "Mesa 24.2.6",
backend: Vulkan,
} I'm on Linux with Gnome. I can reproduce the issue both with the X11 and Wayland backend. |
Nop, not on macOS |
Thanks for testing. What we really need to know is whether #16773 is still an issue after reverting #16828. And if so, if we can fix that issue in a way that doesn't cause the regression documented in this issue. It seems like that old issue could potentially be platform specific, or a driver issue or something. |
one suggestion is changing from |
This reverts commit ae52222. # Objective Fixes #16856 ## Solution Remove rounding from `OrthographicProjection::update`, which was causing the center of the orthographic projection to be off center. ## Testing Ran the examples mentioned on #16856 and code from #16773 ## Showcase `orthographic` example ![image](https://github.com/user-attachments/assets/d3bb1480-5908-4427-b1f2-af8a5c411745) `projection_zoom` example ![image](https://github.com/user-attachments/assets/e560c81b-db8f-44f0-91f4-d6bae3ae7f32) `camera_sub_view` example ![image](https://github.com/user-attachments/assets/615e9eb8-f4e5-406a-b98a-501f7d652145) `custom_primitives` example ![image](https://github.com/user-attachments/assets/8fd7702e-07e7-47e3-9510-e247d268a3e7) #16773 code ![image](https://github.com/user-attachments/assets/1b759e90-6c53-4279-987e-284518db034b)
Bevy version
main, bisected to #16828
Relevant system information
SystemInfo { os: "MacOS 14.5 ", kernel: "23.5.0", cpu: "Apple M1 Max", core_count: "10", memory: "64.0 GiB" }
AdapterInfo { name: "Apple M1 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
Scale Factor 2
What you did
cargo run --example projection_zoom
.See also
orthographic
,camera_sub_view
,custom_primitives
.What went wrong
Projection is noticeably off-center.
Additional information
Caught by
bevy-example-runner
.https://pixel-eagle.com/project/b25a040a-a980-4602-b90c-d480ab84076d/run/5991/compare/5988?screenshot=3D%20Rendering/orthographic.png
I suspect that rounding needs to happen after scaling.
The text was updated successfully, but these errors were encountered: