Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snap to camera view key modifier #886

Open
lknknm opened this issue Jul 1, 2023 · 4 comments
Open

Snap to camera view key modifier #886

lknknm opened this issue Jul 1, 2023 · 4 comments
Labels
type:enhancement New feature or request

Comments

@lknknm
Copy link
Contributor

lknknm commented Jul 1, 2023

Is your feature request related to a problem? Please describe.
As an extension to the features described on the issues #14 and #885, it would be nice if we could use a modifier to snap the camera orbit to a camera view, also similar to Blender.

Describe the solution you'd like
Camera should be able to snap to Front, Right, Left, Rear, Top or Bottom view using Ctrl + mouse camera rotate depending on the mouse movement.

Describe alternatives you've considered
In the future we can implement user options to change hotkeys preferences, as previously discussed.

Additional context
See Blender camera navigation manual as an example: https://docs.blender.org/manual/en/latest/editors/3dview/navigate/navigation.html#orbit

@snoyer
Copy link
Contributor

snoyer commented Jul 2, 2023

I find Blender's drag-and-snap a bit jerky visually :( am I doing it wrong?

blender-drag-snap.webm

I like Solvespace's "Nearest Ortho View" and "Nearest Iso View" features better both visually (smoothly animated) and from a UI point-of-view (key press rather than mouse drag modifier)

solvespace-nearest-view.webm

My suggestion for F3D would be: have a configurable "camera snapping angle" and when the key is pressed round the azimuth and elevation of the camera to the nearest multiple. The configurable snapping angle could be set to 90° for only axis-aligned/ortho views, 45° for both ortho and iso views, or any other angle if appropriate for a given usecase/model.
In addition pressing the key repeatedly would cycle through the snapped views without having to drag in between.

@snoyer
Copy link
Contributor

snoyer commented Jul 3, 2023

spinny-ducky-90.webm
spinny-ducky-45.webm

@lknknm
Copy link
Contributor Author

lknknm commented Jul 10, 2023

@snoyer What hotkey are you using to camera snap? If you hold alt + mwheel-drag in Blender you'll get something like the following:
blender-camera-snap

Having in mind that when you do that in Blender, it snaps automatically to orthographic view. I don't think we necessarily need it to be Ortographic. In my opinion it would depend on whether the Ortographic Toggle is on/off.
We could use any modifier for that, being shift, alt or ctrl.

@mwestphal mwestphal added the help wanted Please help with this issue! label Jan 7, 2024
@mwestphal mwestphal removed the help wanted Please help with this issue! label Jan 26, 2024
@mwestphal
Copy link
Contributor

Lets wait for #443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request
Projects
Status: Investigate
Development

No branches or pull requests

3 participants