You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, brush density and minimum draw distance check that some length requirement has been met to draw, and that's based on the previous mouse position. So if the user clicks exactly at the top-left corner, for a brush size of 1 (which sets density to 1), they must move the mouse a pixel's distance away in any direction to draw. That looks accurate if they move to the right, since the next pixel to the right is about a pixel away. But if they move to the left, they will almost cross through the entire pixel before it draws. This quirk really only occurs within the space of a pixel, so brush sizes of, say, 10 or greater won't see or care about this issue. Pixel artists, though, frequently draw at single pixel sizes.
Possible solution: round the mouse position to the center of a pixel when clicking, something like (int)x + 0.5f, then for any brush density or min draw distance threshold, subtract 0.5f from it. That means at size 1, it should allow stamping the brush as soon as it crosses into any adjacent pixel.
The text was updated successfully, but these errors were encountered:
This mainly affects pixel artists.
Basically, brush density and minimum draw distance check that some length requirement has been met to draw, and that's based on the previous mouse position. So if the user clicks exactly at the top-left corner, for a brush size of 1 (which sets density to 1), they must move the mouse a pixel's distance away in any direction to draw. That looks accurate if they move to the right, since the next pixel to the right is about a pixel away. But if they move to the left, they will almost cross through the entire pixel before it draws. This quirk really only occurs within the space of a pixel, so brush sizes of, say, 10 or greater won't see or care about this issue. Pixel artists, though, frequently draw at single pixel sizes.
Possible solution: round the mouse position to the center of a pixel when clicking, something like
(int)x + 0.5f
, then for any brush density or min draw distance threshold, subtract0.5f
from it. That means at size 1, it should allow stamping the brush as soon as it crosses into any adjacent pixel.The text was updated successfully, but these errors were encountered: