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

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

Open
KadaB opened this issue Jun 27, 2022 · 4 comments

Comments

@KadaB
Copy link

KadaB commented Jun 27, 2022

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 KadaB changed the title default mouse rotating left/right rotates view dependent, should rotate around world y-Axis [feature request] default mouse rotating left/right rotates view dependent, should rotate around world y-Axis Jun 28, 2022
@KadaB
Copy link
Author

KadaB commented Jun 28, 2022

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 :-)

@bendavis78
Copy link

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

@zbynekwinkler
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants