Reasonable rotate/pan/zoom controls #6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
OK, so things are OK with TrackballControls in place. When I revisit this, need to stop the sort of "easing" where additional motion occurs after the mouse button is released, and need to get a situation in which one can roll in some way to be able to get the axes in standard position. But this is good enough to work on the axes again and then return to this.
It's possible the Trackball controls will work well enough for long term. They have that characteristic that making loops rolls the camera, so it appears that all the degrees of freedom are there. There is something just a bit off about them, but it might be a matter of settings. Also I have my doubts about the Pan, whether it is happening the way that seems most sensible -- I'd like the version where the picture just slides to the left more. I suspect that comes partly from the field of view, though -- I think I find things look better for math with a very narrow field of view (i.e., dampened perspective). And so that gives me some doubts about zoom -- do we want to do it mostly by changing camera position, or mostly by changing the field of view, or both? And how does each option interact with label size?
Also, there are a couple of "styles" of dollying zoom, which I think just amount to moving toward/away from the center of the image, vs. moving toward/away from a particular point which projects to the mouse position. Geogebra (sometimes diconcertingly) does the latter when the cursor is over the horizon plane and the other when it is not.
Perhaps there should be an explicitly adjustable field of view slider for the view, with 0 corresponding to orthographic camera. After a conversation with Wayne, it seems that would exactly correspond to dilating the rendering. So definitely set this up to test that understanding.
So that means I will want to write a variant of TrackballControls at least for testing purposes, even if I go back to TrackballControls for production. But do first try to optimize the settings of TrackballControls for maximum comfort.