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

Change rotation behavior? #325

Open
nazar-pc opened this issue May 31, 2018 · 12 comments
Open

Change rotation behavior? #325

nazar-pc opened this issue May 31, 2018 · 12 comments

Comments

@nazar-pc
Copy link

nazar-pc commented May 31, 2018

System information

SolveSpace version: 2.3

Operating system: Ubuntu 18.10

Additional information

I'm new to solvespace, but would say that the way rotation is implemented in solvespace is at very least strange. Every time I try to rotate model with mouse, it does almost exactly the opposite of behavior I'm used to in other programs like free online Tinkercad. To be clear, I'm not talking about mouse/keyboard keys, but rather about rotation process. I almost want to invert it, at least partially.

Is there any way to configure how rotation happens? I didn't find any relevant issues or settings in documentation or config file.

@whitequark
Copy link
Contributor

There is currently no way to configure the controls. This has been discussed before; pretty much every CAD program uses its own controls, so modifying ours would inevitably displease everyone except people who use one particular CAD program. It seems pointless.

@nazar-pc
Copy link
Author

I've tried FreeCAD briefly, it had a few hardcoded presets for this behavior that one can chose from. Do you think something like this can be added to SolveSpace?

@whitequark
Copy link
Contributor

Not easily, the code that handles controls is not currently written in a way that is amenable to this sort of customization. It'd require a major refactor.

@nazar-pc
Copy link
Author

I believe it would be useful for many people. So if there is a chance someone will tackle this in future, would be nice to label this as feature request.

@notnot
Copy link

notnot commented Feb 20, 2019

The rotation controls are also counter-intuitive to me. It is almost trial and error to get the view i am after...

@whitequark
Copy link
Contributor

Does it help if you tick the "use turntable mouse navigation" checkbox on master?

@nazar-pc
Copy link
Author

Unfortunately no, it is even more confusing with that option, can't imagine someone would actually want that.
The primary issue I have is that any circular-like motion turns the model in the opposite direction to what I expect. I've got used to most of other things.

@hinell
Copy link

hinell commented Jan 26, 2022

Thumbing up. Even with turntable enabled it still feels quirky compared to blender.
I think rotation around the X axis is not correct.

blender-rotation.mp4
solvespace-rotation.mp4

@ghost
Copy link

ghost commented Jan 26, 2022

solvespace-rotation.mp4

@hinell, before rotate select XYZ-normal origin point from active g001-references (or any other point to be used as rotation origin) and click F4 (or go to menu "View > Center View At Point") — then retry rotation behavior.

@phkahler
Copy link
Member

@hinell Imagine the model is sitting inside a glass ball. Moving the mouse UP is like rolling that ball upward by pushing your hand (or mouse) across it. Another analogy is to think of a trackball, and the model is inside the trackball. However you want to think of it, the rotation is rotating the model, not the camera. Well, it actually is moving the camera because none of the coordinates in the model change, but it's supposed to feel like moving the object. Does any of this explanation help?

@hinell
Copy link

hinell commented Jan 27, 2022

@Symbian9 Thanks. It worked. I can't find it in references however. Would be nice to have it documented.

It would be also nice to have the last point remembered each time I hit F4 so not to click on it every time. Or even better to get the point of focus automatically.

Would improve UX immensily.

@ghost
Copy link

ghost commented Jan 27, 2022

However you want to think of it, the rotation is rotating the model, not the camera.

@phkahler, no, you missed the point where @hinell told that he "think rotation around the X axis is not correct." — problem here is that selecting/setting origin of 3D view rotation is not well documented in SolveSpace docs.

Thus, if XYZ-origin point is not cenetered 3D view rotation looks like has offset if rotate it around "display X-axis" or "display Y-axis" (rotating around "display Z-axis" may look normal in same time).

In LeoCAD app there is excellent UX on 3D view rotating with many various methods.

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

No branches or pull requests

5 participants