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
The prevents the 3D Viewport Scaling demo's approach from being actually useful with mouse inputs.
Further, I believe there's an issue with the ViewportCotainer disabling the child Viewports "handle inputs locally" property setting when the project is (re-loaded). Aftewards you can enable it but to no effect. It stays enabled in the UI (even play/stop) but the coordinates are still global. Every project reload sets it back to false though. Which is super confusing as the issue only gets noticed on reloading the whole project (or maybe scene?).
UPDATE: If in the the project settings the test width & height are different than the actual width & height it further distorts the mouse position.
Steps to reproduce
Run the minimal project, press SPACE until resolution is set to 25%. Then left click close in the center of the window with the mouse and see that lowres viewports mouse position is reported in the resolution of the root viewort.
Godot version
v3.4.4.stable.official [419e713]
System information
Arch Linux, NVIDIA GeForce RTX™ 3080 Laptop GPU, GLES3
Issue description
The viewport.get_mouse_position() isn't in local space if its inside a ViewportCotainer with stretch enabled.
The prevents the 3D Viewport Scaling demo's approach from being actually useful with mouse inputs.
Further, I believe there's an issue with the ViewportCotainer disabling the child Viewports "handle inputs locally" property setting when the project is (re-loaded). Aftewards you can enable it but to no effect. It stays enabled in the UI (even play/stop) but the coordinates are still global. Every project reload sets it back to
false
though. Which is super confusing as the issue only gets noticed on reloading the whole project (or maybe scene?).UPDATE: If in the the project settings the test width & height are different than the actual width & height it further distorts the mouse position.
Steps to reproduce
Run the minimal project, press SPACE until resolution is set to 25%. Then left click close in the center of the window with the mouse and see that lowres viewports mouse position is reported in the resolution of the root viewort.
E.g.:
Minimal reproduction project
vpscale.zip
It's the 3D Viewport Scaling demo with a minimal script attached to the Cubes.tscn root object:
The text was updated successfully, but these errors were encountered: