Allowing full scene camera rotation using ArcballControls instead of OrbitControls #3710
Replies: 2 comments
-
|
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.
-
|
I'm closing this feature request as resolved in PR #4820, released in version 3.9.0. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I have found that
ui.scenedoes 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.jsfile, NiceGUI usesOrbitControlsfor 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