-
Notifications
You must be signed in to change notification settings - Fork 56
feat: Use FPSCamera to improve control #112
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
Conversation
yungyuc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both QOrbitCameraControl and QFirstPersonCameraControl look useful. Can we keep both and switch using a menu entry?
|
Sure. Which one should be the default camera? |
Either is OK. It will be configurable once we figure out a good way to implement #84 . |
|
@yungyuc I've upload the changes. |
| viewer->scene()->controller()->setCamera(viewer->camera()); | ||
| }); | ||
|
|
||
| auto * cameraGroup = new QActionGroup(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have been mixing camelCase and snake_name for local variables. You didn't start it. But we should start to think about how to end it. It will probably take more time for us to accumulate code before coming up with a good guideline.
|
|
||
| cameraMenu->addAction(use_orbit_camera); | ||
| cameraMenu->addAction(use_fps_camera); | ||
| menuBar->addMenu(cameraMenu); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. I will try it later.
#70
I replace to original orbital camera to first person camera to improve camera controls, In my opinion the controls are more straight forward.
Currently the new camera contain some cons:
However, auto focus to the whole scene is the killer feature. I highly recommend to give it a try.
P.S. The supported controls is documented in here.