scenerygraphics / sciview

sciview is a tool for visualization and interaction with ND image and mesh data
BSD 2-Clause "Simplified" License
67 stars 17 forks source link

Follow up on Controls improvements #541

Closed kephale closed 7 months ago

kephale commented 1 year ago

Multiple issues arose when reviewing https://github.com/scenerygraphics/sciview/pull/532, and some require more though to address, including:

Most extensive description in https://github.com/scenerygraphics/sciview/pull/532#pullrequestreview-1542062507

ctrueden commented 1 year ago

Followup to the arcball camera reset issue: when using FPS mode with shift or ctrl + drag, it moves the camera in/out and left/right.... but there is no way (that I could find) to turn and look left or right, making it less useful to fly around FPS style than it would otherwise be.

smlpt commented 9 months ago

Just came across the thread in #532 and wanted to add my two cents to the point "Arcball mode resets camera after FPS mode camera movement":

This might be scenery-related behavior and might have to be changed there? As @ctrueden already mentioned, most if not all 3D viewers also change the rotational center when panning the view. The question is, how far from the camera should the rotational center be? Assume you have a really big object in your scene, so you have to zoom out to see it well. If the rotational center had a fixed distance from the camera, you might end up rotating around too close to the camera. I know from Blender that the zooming operation works non-linearly, meaning the zoom steps get larger the more you zoom out and smaller the more you zoom in. So maybe the distance between rotational center and camera could also be proportional to the current zoom state?

kephale commented 7 months ago

@xulman describes his thoughts here: https://imagesc.zulipchat.com/#narrow/stream/327495-scenery.2Bsciview/topic/arcball.20jumping