Cura: Feature Request: Zoom In Mouse Pointer Direction

Created on 24 Mar 2017  ·  35Comments  ·  Source: Ultimaker/Cura

Most CAD packages zoom into the area where the mouse pointer is pointing when you scroll the mouse wheel.

This allows you to point at a part you want to zoom into and scroll the wheel to get a closer look in that direction.
This would be really nice and make the user experience faster when you have multiple parts on the bed or when checking layer view.
It would also make Cura more intuitive for CAD designers.

UX Improvement

All 35 comments

Ah, currently we just zoom in towards the centre of the screen. I think this would be very useful indeed.

Also quite fun to implement, I think :)

I'm glad you will enjoy implementing it. Because I will have fun using it.
I wish I could program. It has taken me like 6 months to try and add an extra endstop and I still can't figure it out.

+1 for this from me as on a Macbook from what I can find you can't move the build plate around so if you zoom in you only get to see up close to where it takes you.

@ChrisRiddell SHIFT+left click drag doesn't work on Mac?!

@Ghostkeeper perhaps it's better to move forward / backward instead of zooming. It can be quite annoying to not be able to get a part larger on your screen because you are far away and reached the max zoom level.

Cura already does a dolly move instead of a true zoom

Then why is there a max zoom level?

The dolly pivots around an origin (which does not have to be on the center of the buildplate; eg if you click on an object, that origin becomes the center of the object). The max zoom level is basically the minimum distance from that origin.

I _think_ the reason for that minimum distance is that the closer you get, the smaller the steps you make to zoom in further. If the minimum distance were 0, then there would be rounding issues when zooming back out (ie: zoomFactor * currentDistance when currentDistance = 0 makes it impossible to zoom out).

See https://github.com/Ultimaker/Uranium/blob/master/plugins/Tools/CameraTool/CameraTool.py#L215

Alright, so then i guess this feature request would involve placing the
pivot at the place the mouse is pointing at, without changing the camera
position and then moving the camera toward the new pivot.

@BagelOrb It's is now not sure why it stopped working last time I had it open :/

Actually zooming is quite a difficult subject. When rotating you would want
to rotate around a pivot, while when zooming the pivot is an invisible
boundary point where you cannot get past when trying to get closer.

In blender you can switch to a fly mode in which you move forward, strafe
up/down/left/right and the camera rotates around its own center by using
the mouse. I don't know whether that would work for cura, though.

Maybe we should look at how solidworks handles the camera. For user
friendly interface blender is our worst bet! :O

Our product manager just rejected this issue because it was inactive for 3 months.

Well that's dissapointing as it would have really improved the user experience.

Thing is that there's so much ideas about what to do next that we have to
make a choice and disregard some options.

@Ghostkeeper @BagelOrb 3 months of inactivity do not necessarily mean nobody is interested in the feature. A lot of people might quietly like it. I just put some wake up call onto the forum to make people understand they should support ideas here actively.
So +1 from me for Labern's idea here.

Let's hope enough people respond with +1's so that we can get a good
picture of what people generally want..

Hint hint, anyone that is interested in this feature please comment here.
I am one of these people :+1:

+1 👍

I'll have a look tomorrow after work to see how hard it is to build.

The way in which Blender does this is by making the amount by which you
move the camera forward depends on the object which is pointed to by the
mouse pointer.

That way you don't go through an object when trying to view a detail of a
model.

On a personal note, I would not take Blender as an example of how to do mouse/keyboard interaction.

Haha true that.

Visually it's the worst program, but otherwise it has quite good UI. It has
shortcuts for everything and the look around options are quite nice. It's
just that you can't find anything and right mouse button is ffed.

In terms of cad and 3d model navigation. Solidworks is pretty much the benchmark. Other programs like Onshape imitate this style of navigation as its the most common.

True.

Just checked. Solidworks zooms in while keeping what the mouse is pointing
at at the same location on the screen. Zooming out is just zooming out
based on the middle of the screen.

The first part of this clip shows the zoom action. So you can point to a part of the model you would like to look at closer and scroll the mouse wheel to zoom to that section. Yes, it does bring it to the center of the screen.
https://youtu.be/JyuZXZddMUQ

See pull request. Had a bit of "dead" time to implement it.

Right now it also zooms out in the direction of the mouse. What do you guys think? Is that behavior that should stay that way, or should we always zoom out by means of the center?

That sounds good. I sometimes use this to pan if I have the mouse in my hand. Say I'm zoomed in to the left and want to pan to the right, then I move the mouse to the right and zoom out and then in.

Btw, being a keyboard afficionado I do this by moving the mouse, but zooming in and out with + and -. Of course, I would much more like to do this purely with the keyboard. Right now (Cura 2.5.0) the arrow keys only rotate. It woud be nice if that would pan if combined with a modifier key. Or the other way around actually; panning with the arrow keys is more intuitive and in keeping with how other software does it.

Yes that's good. I also use it to quickly pan.

Hmm, it's not working quite right; The rotation point isn't updated quite right.

This has been fixed. Whoo.

Great I found this new feature! - To spread the word, I'd like to suggest to make it the default behaviour!

  • 1

On 28 Feb 2018 4:16 a.m., "herrdeh" notifications@github.com wrote:

Great I found this new feature! - To spread the word, I'd like to suggest
to make it the default behaviour!


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Ultimaker/Cura/issues/1572#issuecomment-369107793,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIe9EWuKBTt4McKTiaFFH-bUHUDEe0__ks5tZMUUgaJpZM4Mn_HI
.

I hate such behavior but maybe @LukeChen-Ultimaker has an opinion?

It needs a bit of tweaking before it should be made default. It needs to slow down the zoom factor the closer to the item you get and also the view needs to be restrained somehow to you don't lose the build platform.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wi1k1n picture wi1k1n  ·  3Comments

mubarak111nsu picture mubarak111nsu  ·  3Comments

mnswamp1 picture mnswamp1  ·  3Comments

DmitryBychkov picture DmitryBychkov  ·  3Comments

StanislavJochman picture StanislavJochman  ·  3Comments