huxingyi / dust3d

Dust3D is a cross-platform 3D modeling software that makes it easy to create low poly 3D models for video games, 3D printing, and more.
https://dust3d.org/
MIT License
2.99k stars 223 forks source link

Changing node radius with touchpad #83

Closed bobpepin closed 1 year ago

bobpepin commented 4 years ago

I am using Dust3D on a Macbook Air with the built-in touchpad, where Qt maps "mouse scroll" to a two-finger swipe up/swipe down. The radius of nodes is very hard to control, since Qt usually ends up sending an extra mouse scroll event when lifting the fingers from the touchpad, changing the radius. Qt also seems to send mouse scroll events with quite big increments for small finger movement, so the whole experience is really jumpy. In practice that means that I have to move two fingers really slowly and when the radius is right, try to click with both fingers without moving too much so that it shows the menu and stops sending mouse scroll events, and then I can lift the fingers. Would be be possible to have an option for changing the radius for example using mouse movement plus a modifier key like shift, control, option, ...?

huxingyi commented 4 years ago

Thanks for the suggestion. Will looking into it.

bobpepin commented 4 years ago

Ideally we might want to have some kind of "handle" to drag for resizing, that most closely resembles how one would resize things in gimp or powerpoint for example. That would not be an option for node resizing during node placement, however, unless we do click-and-drag for placement plus radius selection. Not sure how intuitive that would be. As an extra it would be nice to be able to numerically enter a node radius, if one wants to make sure that certain nodes have the same radius.

bobpepin commented 4 years ago

I just had a look at how Gimp does bezier curves, which are also center + radius/direction, they use click-and-hold when placing plus handles for adjusting, seems to work well.

huxingyi commented 4 years ago

Thanks for the research, we should follow the common practices. The extra UI element such as handles are not trivial to implement though.

huxingyi commented 1 year ago

Closed as not relevant to the latest release anymore, thanks and feel free to reopen it.