-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
New Arcball controls #21989
New Arcball controls #21989
Conversation
The example, included into the pull request, is here. |
@danielefornari would like to invite you to add this to https://github.com/pmndrs/three-stdlib! 💚 |
So it is accepted and planned to be included the 133 release? That would be great! 😀 |
@mrdoob has still to review the PR but from my point of view it is good to go! |
Hmm, would it be possible to use the right mouse button for panning? |
Right now panning is possible using the ctrl modifier (cmd on macOS) |
Yes, I know. But if you don't have a keyboard you can't pan. |
We are thinking to overcome this limitation by adding a function which allows to associate a certain mouse/keyboard action with an operation. In this way one can also set mouse right button for panning. |
That sounds good to me 👍 |
Yes, i will work on it these days |
…ed an issue with touch inputs
Functions to set/remove an association between an operation and a mouse/keyboard action has been added, so now inputs to perform operations can be customized anytime! Zoom/FOV manipulation can be also be associated with a mouse button, in this case the operation is performed with a vertical movement of the cursor. |
Oh, I've just noticed that on ChromeOS I can pan with a trackpad using three fingers. I'll have to see if that works on MacOS. Do you guys prefer three figers for panning instead of two fingers? |
@mrdoob on MacOS by default three-finger pan is used to switch between fullscreen apps Screen.Recording.2021-09-07.at.15.55.44.mov |
Indeed... @danielefornari can we set two finger / right mouse button for pan by default? |
Not quite sure about these suggestions,
|
I know what you mean about leaving the right mouse button for the context menu, but that's a battle we went through 10 years ago already and we opted for losing the context menu in favour of better single-hand 3d scene control on MacOS.
Sketchfab also uses right mouse button for panning: |
As suggested, mouse right button has been setted for pan operation by default and, in order to best match Orbit/Trackball controls, wheel button has been setted for zoom operation |
Works beautifully now~ |
Many thanks! |
Description
Added brand new ArcballControls inspired by the one of Meshlab.
This is part of my bachelor thesis project at Visual Computing Lab