visgl / deck.gl

WebGL2 powered visualization framework
https://deck.gl
MIT License
12.04k stars 2.07k forks source link

[Feat] Rotation in OrbitView around the focus point (click location) instead of target position #7323

Open shadab-skhan opened 1 year ago

shadab-skhan commented 1 year ago

Target Use Case

We are using DeckGL in our opensource project WebViz, a react component for subsurface visualization. We are using OrbitView to visualize 3d subsurface model. (https://github.com/equinor/webviz-subsurface-components/)

In this we experienced an issue with the rotation point of the OrbitView where it rotates around the target position, which is center of the viewport. While this works fine when the object is positioned at the center, but when the object is away from center, the rotation doesn't provide good user experience.

As a user, we would like to rotate the object and not the camera, for this we propose to allow a mechanism to set the rotation point as point of click, and rotate the object around that point.

Proposal

To allow a mechanism to set the rotation point as point of click, and rotate the object around that point.

Pessimistress commented 1 year ago

Use the FirstPersonView.