You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In one system, I set camera.viewport to a custom Some(Viewport { .. }) with physical_position and physical_size (I got them from egui). After some time, in another system, I did camera.viewport = None.
What went wrong
Rendering becomes stretched, as if it would retain the same viewport size I set before resetting it, but stretching it to the whole window.
Additional information
I'm not quite sure what's wrong since I'm not very versed in rendering, but here are some key points I noticed while trying to debug this issue:
The same code worked on bevy 0.9;
I change viewport to None using a Query<&mut Camera, With<Camera3d>>::get_single_mut. If I add &mut OrthographicProjection as a second query param (and do literally nothing with it), it wouldn't stretch, but it would still render as if the viewport is the old one (the one I set to egui rect);
Changing window size fixes the problem.
Screenshots
Initial viewport
Changed viewport to fit in egui provided rectangle
After I set viewport to None
The text was updated successfully, but these errors were encountered:
Bevy version
0.10.1
Relevant system information
What you did
In one system, I set
camera.viewport
to a customSome(Viewport { .. })
with physical_position and physical_size (I got them from egui). After some time, in another system, I didcamera.viewport = None
.What went wrong
Rendering becomes stretched, as if it would retain the same viewport size I set before resetting it, but stretching it to the whole window.
Additional information
I'm not quite sure what's wrong since I'm not very versed in rendering, but here are some key points I noticed while trying to debug this issue:
None
using aQuery<&mut Camera, With<Camera3d>>::get_single_mut
. If I add&mut OrthographicProjection
as a second query param (and do literally nothing with it), it wouldn't stretch, but it would still render as if the viewport is the old one (the one I set to egui rect);Screenshots
Initial viewport
Changed viewport to fit in egui provided rectangle
After I set viewport to None
The text was updated successfully, but these errors were encountered: