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
create empty project, place a cube onto some world position, and a label onto the same world position via Camera3D.UnprojectPosition. Also add Camera3D, naturally.
change resolution to something bigger than 1920x1080 (at 1080 I found this both work and not work depending on being borderless or not)
Label should be offset.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
Which stretch mode are you using in the project? You most likely need to multiply/divide the coordinates by the scale factor (which you can determine by dividing the current window height with the base window height, 1080 in your case).
Godot version
4.0.dev
System information
Windows 11, AMD CPU & GPU
Issue description
Camera3D.UnprojectPosition() is not accurate with higher resolutions.
the below images how unit plates that are placed on a canvas layer where the units are, using Camera3D.UnprojectPosition.
default res
2560x1440
The relevant code snippet:
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: