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 "Tutorial 2.2 - Camera" Example produces very large mouse position values. After a view seconds the mouse position is {<129309770. 134478720>} and rising. Calculating the mouse offset (from the previous move event) gives different values depending on the mouse position on the screen, -738, -378 if the mouse is at the top left and 64768, 65120 at bottom right.
Using the glfw 3.4 release seems to result in the OFFSET being equal to the position of the cursor relative to the center of the window. But that means the IMouse.Position property does accumulate the offset resulting in large positive or negative numbers.
Steps to reproduce
Platform: Desktop Windows 10 22H2
Connect to another windows machine with Remote Desktop
Run the Camera Example on the remote machine
Try to move the camera using the mouse
Put a breakpoint in the OnMouseMove function and inspect the mouse position
Comments
I have tested it with the main branch using the sample but the same problem occurs in my project using the silk.net 2.20.0 nuget.
Summary
The "Tutorial 2.2 - Camera" Example produces very large mouse position values. After a view seconds the mouse position is {<129309770. 134478720>} and rising. Calculating the mouse offset (from the previous move event) gives different values depending on the mouse position on the screen, -738, -378 if the mouse is at the top left and 64768, 65120 at bottom right.
Using the glfw 3.4 release seems to result in the OFFSET being equal to the position of the cursor relative to the center of the window. But that means the IMouse.Position property does accumulate the offset resulting in large positive or negative numbers.
Steps to reproduce
Comments
I have tested it with the main branch using the sample but the same problem occurs in my project using the silk.net 2.20.0 nuget.
This might be related; glfw/glfw#1276
The text was updated successfully, but these errors were encountered: