CQ-editor icon indicating copy to clipboard operation
CQ-editor copied to clipboard

[feature request] default mouse rotating left/right rotates view dependent, should rotate around world y-Axis

Open KadaB opened this issue 3 years ago • 7 comments

Hey,

I think the mouse orientation in the 3d view is 90% right, except way the mouse rotates around the y-Axis (pulling the mouse left/right). This isn't really intuitive and actually quite confusing. The camera rotates around the camera up vector, but should rotate around the world up (or global y-Axis) vector.

Either way, there should be an option to let the viewer decide if he/she wants to rotate around the view dependent camera up vector or the world coordinate system up vector (or Y-Axis).

KadaB avatar Jun 27 '22 23:06 KadaB

In occt_widget.py Line 91 I've found the rotation method called from the V3d_Viewer. V3d_Viewer has multiple rotation methods

        if event.buttons() == Qt.LeftButton:
            self.view.Rotation(x,y)

Maybe one of the four with the right parameters can rotate the view around the world up axis. I'll have to check, but it seems that it isn't too hard to change :-)

KadaB avatar Jun 28 '22 20:06 KadaB

@KadaB, did you find a solution to this? I find the orbit style very clunky. I much prefer OpenSCAD's mouse controls.

bendavis78 avatar Sep 24 '23 03:09 bendavis78

There is a PR #220 adding a different style of turning/orbiting. Is that what you are after? I'd prefer to have the turn table method as well (see the videos in the PR).

zbynekwinkler avatar Feb 16 '24 08:02 zbynekwinkler

It is also the way the github builtin viewer for stl files use. See for example https://github.com/openvmp/openvmp-models/blob/main/generated_files/parts/arduino/mega2560.stl and try to rotate the view there.

zbynekwinkler avatar Feb 16 '24 09:02 zbynekwinkler