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

Arcball Camera #126

Open
Capital-Asterisk opened this issue Jul 10, 2021 · 1 comment
Open

Arcball Camera #126

Capital-Asterisk opened this issue Jul 10, 2021 · 1 comment
Labels
good first issue Good for newcomers

Comments

@Capital-Asterisk
Copy link
Contributor

Capital-Asterisk commented Jul 10, 2021

Relevant files:

Rotating the camera around in-flight feels a bit weird, as the current implementation directly adds mouse delta x/y to camera yaw/pitch.

The way to rotate around in 3D space without an "up" appears to be the "Arcball." There exists an example for Magnum, as well as many other useful resources on how to implement it, such as this OpenGL tutorial. Ideally this is a simple self-contained task, but may also call upon other improvements elsewhere in the project wherever lacking.

Also a good idea to rename the "ui_rmb" control to something like "camera_orbit" or something similar, as controls are intended to be rebound to different buttons.

@Capital-Asterisk Capital-Asterisk added the good first issue Good for newcomers label Jul 10, 2021
@Capital-Asterisk
Copy link
Contributor Author

Capital-Asterisk commented Dec 18, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant