Bug 444764 - How do snapping works?
Summary: How do snapping works?
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 5.0.0-beta1
Platform: macOS (DMG) macOS
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-01 10:41 UTC by Hoang Duy Tran
Modified: 2021-11-02 04:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
attachment-26373-0.html (1.14 KB, text/html)
2021-11-01 11:09 UTC, Wojciech Kosowicz
Details
attachment-27517-0.html (1.15 KB, text/html)
2021-11-01 11:22 UTC, Wojciech Kosowicz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hoang Duy Tran 2021-11-01 10:41:38 UTC
SUMMARY

Unable to snap correctly to intersection point between two assistants (ellipse and vanishing point)
Please watch this screencast to see the procedure (https://drive.google.com/file/d/1RT19vIXz6x7tAHmTmu35mlLZUgjBafi6/view?usp=sharing)

STEPS TO REPRODUCE
- Start Krita latest build, use 1920x1080, 300dpi layout
- Remove default paint layer
- Change the background colour of the bottom layer to a grey
- Add a vector layer
- Add two guides, vertical and horizontal, center to the middle of image, create a reference center point
- Add an assistant (type ellipse) draw horizontally first, the press shift to make a perfect circle on vertical dimension. Move to center (already struggle)
- Add an assistant (type vanishing point), move to reference point (shift+s to enable intersections and guides if needed)
- Use the poly line to start from the intersection point of the assistants, UNABLE TO SNAP.

Please see my screencast (dropped to my google drive) at this

https://drive.google.com/file/d/1RT19vIXz6x7tAHmTmu35mlLZUgjBafi6/view?usp=sharing

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
macOS: Catalina 10.15.7

ADDITIONAL INFORMATION
Comment 1 Hoang Duy Tran 2021-11-01 11:03:59 UTC
Please use this MP4 file instead (https://drive.google.com/file/d/1Vh6Y1XAoSwGVn9U_nA9GtEuEppHpJZNk/view?usp=sharing), the previous one cut too short and the speed was too quick to capture anything, so I slow down to make it easier for you to observe.
Comment 2 Wojciech Kosowicz 2021-11-01 11:09:13 UTC
Created attachment 143088 [details]
attachment-26373-0.html

pon., 1 lis 2021, 12:04 użytkownik Hoang Duy Tran <bugzilla_noreply@kde.org>
napisał:

> https://bugs.kde.org/show_bug.cgi?id=444764
>
> --- Comment #1 from Hoang Duy Tran <hoangduytran1960@gmail.com> ---
> Please use this MP4 file instead
> (
> https://drive.google.com/file/d/1Vh6Y1XAoSwGVn9U_nA9GtEuEppHpJZNk/view?usp=sharing
> ),
> the previous one cut too short and the speed was too quick to capture
> anything,
> so I slow down to make it easier for you to observe.
>
> --
> You are receiving this mail because:
> You are watching all bug changes.
>
>
Comment 3 Hoang Duy Tran 2021-11-01 11:18:05 UTC
Suggestion, please take a look at how the snapping is implemented in Inkscape. It's divided into options 

https://www.tutorviacomputer.com/inkscape/inkscape-snapping/
Comment 4 Wojciech Kosowicz 2021-11-01 11:22:16 UTC
Created attachment 143089 [details]
attachment-27517-0.html

There is only one option as far as I know, the rest is deprecated and
stopped functioning

pon., 1 lis 2021, 12:18 użytkownik Hoang Duy Tran <bugzilla_noreply@kde.org>
napisał:

> https://bugs.kde.org/show_bug.cgi?id=444764
>
> --- Comment #3 from Hoang Duy Tran <hoangduytran1960@gmail.com> ---
> Suggestion, please take a look at how the snapping is implemented in
> Inkscape.
> It's divided into options
>
> https://www.tutorviacomputer.com/inkscape/inkscape-snapping/
>
> --
> You are receiving this mail because:
> You are watching all bug changes.
>
>
Comment 5 Hoang Duy Tran 2021-11-01 14:32:57 UTC
Just to make my intention clear in this example, I was trying to draw a star shape with 5 peaks, meaning 360/5 = 72, so 5 peaks, 5 valleys meaning 360/10 = 36º. Then at the intersection points of the circle and the vanishing lines I hope to draw a poly-line across every 4 arcs, and by joining those points you'll ended up with a star-shape.
Comment 6 Tiar 2021-11-01 17:01:17 UTC
From what I can understand, you had two issues:
- the center of the ellipse assistant not snapping to the guides intersection,
- the start of polyline not snapping to the intersection of assistant preview lines.

The first one can be maybe argued that there might be something wrong, though note that the center of the ellipse assistant won't be snapping anyway because right now the only things that can snap in an assistant are the handles, which are the big circles.

In the second case it's even more clear it's a wish and not a bug because the preview lines are just meant to be a visual preview, not any kind of actual guide like that, providing snapping etc. It's only drawn on the canvas, it doesn't provide any more functionality.
Comment 7 Hoang Duy Tran 2021-11-01 17:34:15 UTC
From my observations:

- Guide lines cannot be snapped easily to the center of images. There should be a way to snap these lines to units on the ruler, or to the grid, or by the input values provided by the user, ie. the distance from center, from edge (left, right, left, top), if two or more lines present, they can be set a distance apart with user input value to make guide lines useful.

- Guide lines are there to allow objects to snap to them, making the process of laying out items easier for users. If objects cannot aligned, or snapped to the guide lines, there is NO POINT for them to be there at first place.

- Objects should be able to snap to other objects, such as guide lines, grid, other objects at intersection points, edges, borders, mid-points, input distance in a field (with different value unit, ie. point, pixels, mm, cm etc...) or even angles, depending choices.

- Please play around with Inkscape and see how useful its functionalities are (and they worked).
Comment 8 Tiar 2021-11-01 21:02:00 UTC
I'm sorry, but this is not a valid bug report. A valid bug report only reports exactly one issue, is very precise and actionable by the programmer. Your issues seem to be more suitable for a discussion on our forum on krita-artists.org .

Since some of what you ask for are things that are not implemented yet, please read this instruction to learn how to make a good feature request: https://docs.krita.org/en/untranslatable_pages/new_features.html (feature requests should be posted on krita-artists.org forum as well, not here on bugs.kde.org, which is a place for bug reports). Then make a post on krita-artists.org according to the instruction.
Comment 9 Hoang Duy Tran 2021-11-02 04:38:09 UTC
I agreed with you, there are too many bugs in this report and it cannot be singly handled. The snapping options (shift-s) should be removed if it is NOT YET implemented properly, avoiding all hassles for everyone, programmers as well as users.