Allowing full scene camera rotation using ArcballControls instead of OrbitControls #3710
javierlopezrodriguez
started this conversation in
Ideas / Feature Requests
Replies: 1 comment
-
Thanks for the suggestion, @javierlopezrodriguez!
If the camera wouldn't stop above the object, you would end up upside down on the other side, leading to unintuitive "rotations" over there. But I agree that ArcballControls could have advantages in certain applications, and it's probably not too hard to implement both option. We could simply add a parameter like nicegui/nicegui/elements/scene.js Line 146 in 4c2cd6e |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I have found that
ui.scene
does not allow full camera rotation in some directions, making the interaction with the scene feel clunky. Upon investigation, I discovered that this is due to the limitation ofOrbitControls
, which is used internally by NiceGUI to manage scene interactions.Problem:
Cause:
scene.js
file, NiceGUI usesOrbitControls
for camera manipulation:Proposed Solution:
instead of OrbitControls
. ArcballControls allow full scene rotation without being restricted by the up vector, providing a smoother experience. ArcballControls DocumentationWould it be possible to add support for ArcballControls in NiceGUI? I don't know how easy or feasible it is to integrate it with the existing scene.js code. If not, I would be grateful if someone could suggest any alternative to make the interaction with the scene feel smoother.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions