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

Movement smoothing #15

Closed
aromanro opened this issue Dec 9, 2021 · 2 comments
Closed

Movement smoothing #15

aromanro opened this issue Dec 9, 2021 · 2 comments
Assignees

Comments

@aromanro
Copy link
Owner

aromanro commented Dec 9, 2021

The problem with the windows timers is that the messages do not necessarily come at the specified interval.

To have the 'proper' planets position at the actual time of the timer message, one could use a previous state to interpolate/extrapolate positions/rotations.

A similar issue exists for the camera movements.

This jittering effect is not something very visible in this program case but for correctness it should be handled.

@aromanro aromanro self-assigned this Dec 9, 2021
aromanro pushed a commit that referenced this issue Dec 30, 2021
…ts in a queue, so the results can be retrieved one after another without waiting. Redrawing is done instantly from the timer function (not with Invalidate). Now interpolation #15 should work all right, but there isn't really much visual difference so I guess I won't do something similar for camera or spaceship movements.
@aromanro
Copy link
Owner Author

This should be it for now, I guess I won't do the same for spaceship and camera movements.

@aromanro
Copy link
Owner Author

Spaceship movements take into account the time, so only camera movements would still need to be improved. Added #17 for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant