Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera: Improve subpixel movement #7319

Merged
merged 1 commit into from May 12, 2018

Conversation

SmallJoker
Copy link
Member

When moving the mouse cursor very, very slowly to the right or bottom, the camera never moves. However, when moving it into the other direction, the camera will always move. The problem behind this issue is that only entire pixel values are provided by Irrlicht (v2s32) and we're resetting the mouse position continuously to such a rounded/floored value.
Use case: Zoom & sniping with guns

How to test
minetest.conf: mouse_sensitivity = 1.2 or any other high value
Move the camera around, but stepwise - pixel by pixel and compare with before.

@SmallJoker SmallJoker added @ Client / Audiovisuals Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines labels May 12, 2018
@sfan5 sfan5 added One approval ✅ ◻️ and removed Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines labels May 12, 2018
@SmallJoker SmallJoker merged commit d5d248c into minetest:master May 12, 2018
@SmallJoker SmallJoker deleted the camera_finetune branch May 12, 2018 12:31
osjc pushed a commit to osjc/minetest that referenced this pull request Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants