Skip to content

Conversation

@yanagiragi
Copy link
Contributor

#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:

  1. It does not support to reverse the vertical direction to rotation the camera
  2. The controls should be more straight forward if it supports WASDQE instead of Arrow/PageUpDown

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.

Copy link
Member

@yungyuc yungyuc left a 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?

@yanagiragi
Copy link
Contributor Author

Sure. Which one should be the default camera?

@yungyuc
Copy link
Member

yungyuc commented Jul 30, 2022

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 .

@yanagiragi
Copy link
Contributor Author

@yungyuc I've upload the changes.

viewer->scene()->controller()->setCamera(viewer->camera());
});

auto * cameraGroup = new QActionGroup(this);
Copy link
Member

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);
Copy link
Member

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.

@yungyuc yungyuc merged commit 9eef4aa into solvcon:master Aug 14, 2022
@yanagiragi yanagiragi deleted the 70-improve-camera-control branch October 3, 2022 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants