Closed yungyuc closed 1 month ago
Please let me have a try.
@tychuang1211 and @YenPeiChen07 are working on it
@Tucchhaa Thanks for the PR #385. After testing I found w and q should swap and s and e should swap. For a simulation / cad code, it is unintuitive for "up" and "down" to move along the z axis (perpendicular to the screen/window). "Up" should go toward the top of window and "down" should go toward the bottom of the window.
We should also add the movements as items in the "View" menu. Could you please help it?
We should also add the movements as items in the "View" menu. Could you please help it?
@yungyuc do you mean assigning custom keys to the camera's movement?
We should also add the movements as items in the "View" menu. Could you please help it?
@yungyuc do you mean assigning custom keys to the camera's movement?
No, but that is also an important feature. It is substantial work and will need a separate issue to track. The ultimate form may be like how vscode and clion (JetBrains IntelliJ-series IDE) work.
The "View" menu is like below, and it should contain the movements with hotkey labeled:
@yungyuc should the movement hotkey items be clickable or disabled?
@yungyuc should the movement hotkey items be clickable or disabled?
I was thinking they should be clickable (enabled). I didn't think of a use case for the movement menu items to be disabled. But perhaps I missed something?
I think of what is the use case of clickable items. When it's clicked we move the camera, but I don't understand why somebody would like to use the camera this way. Like arrows and WASD are pretty intuitive, except forward/backward movement.
But if items are disabled, they are used only in the way to inform the user of hotkeys. And making them clickable, feels like an overkill.
And because there are many ways to move the camera translation in x,y,z + rotation, I worry about not overloading the interface
I think of what is the use case of clickable items. When it's clicked we move the camera, but I don't understand why somebody would like to use the camera this way. Like arrows and WASD are pretty intuitive, except forward/backward movement.
The primary reason is for completeness. Anything that can be controlled through keystrokes should be available in the menu. (But menu items may not need to have corresponding keyboard shortcuts.) That is what we are expecting from a GUI program.
And there is an irreplaceable use case of the movement menu item: when keyboard is missing or broken. It frequently happens when operating in a remote desktop.
@Tucchhaa Any additional items for this issue?
I think the main issue was achieved: camera's control was improved. I suggest to close this issue. If we want to add more functionality in the future, we can create a new one 🙂
@Tucchhaa sounds good. Let's close this issue. If you have concrete ideas to do something please file an issue. If you just want to discuss please create a discussion conversion. And we can do free chat in discord.
The current camera control uses vanilla
Qt3DExtras::QOrbitCameraController
and should be improved. The camera control is a critical component in the viewer. It at least needs the following functions and more:Amended on 27th July 2024