-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Regression with custom projections #16856
Copy link
Copy link
Closed
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesO-LinuxSpecific to the Linux desktop operating systemSpecific to the Linux desktop operating systemP-RegressionFunctionality that used to work but no longer does. Add a test for this!Functionality that used to work but no longer does. Add a test for this!S-Needs-InvestigationThis issue requires detective work to figure out what's going wrongThis issue requires detective work to figure out what's going wrong
Metadata
Metadata
Assignees
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesO-LinuxSpecific to the Linux desktop operating systemSpecific to the Linux desktop operating systemP-RegressionFunctionality that used to work but no longer does. Add a test for this!Functionality that used to work but no longer does. Add a test for this!S-Needs-InvestigationThis issue requires detective work to figure out what's going wrongThis issue requires detective work to figure out what's going wrong
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.