Bug 447514 - New gradient smoothing is not applied to mesh gradients / Mesh gradients looking really blocky
Summary: New gradient smoothing is not applied to mesh gradients / Mesh gradients look...
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: 5.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-25 19:55 UTC by reverene
Modified: 2024-01-22 10:05 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Mesh gradient looking really blocky. (76.90 KB, image/png)
2021-12-25 19:55 UTC, reverene
Details
Screenshot showing the difference between stop gradient and mesh gradient on a vector shape (600 dpi, the text is 9pt) (67.19 KB, image/png)
2024-01-22 10:02 UTC, Tiar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description reverene 2021-12-25 19:55:32 UTC
Created attachment 144864 [details]
Mesh gradient looking really blocky.

Krita 5.0.0 introduced a new type of gradient smoothing with blue noise (https://krita.org/en/krita-5-0-release-notes/). This appears to be unimplemented in mesh gradients (*attachment*).

STEPS TO REPRODUCE
1. Make a rectangle on a vector layer
2. Select, add a mesh gradient

OBSERVED RESULT
It's really blocky.

EXPECTED RESULT
Smooth and possibly dithered.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: NixOS Linux with KDE environment
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Using the Krita 5.0.0 x86_64 AppImage
Comment 1 Halla Rempt 2022-03-08 13:07:12 UTC
The new smoothing only happens on raster gradients, not vector gradients nor mesh gradients. This is something we could implement at some point, but it would be a new feature.
Comment 2 Tiar 2024-01-22 10:02:30 UTC
Created attachment 165118 [details]
Screenshot showing the difference between stop gradient and mesh gradient on a vector shape (600 dpi, the text is 9pt)

I don't think this is a wish report, because the vector shapes with mesh gradients don't always - like in this case - need more values or blue noise to be smooth.

I think there is an issue with rendering that for some reason doesn't see the true resolution of the file. The text above was 9pt, and the middle-and-upper parts show around 6 values - possibly the mesh gradient is painted in points (so 9 values calculated for 9 points of text) instead of pixels (which on 600 dpi image, as it was, is around, what, 56 pixels? And black-to-white gradient has 255 values, so we should see 56 values in the gradient without any additional smart smoothing).
Comment 3 Tiar 2024-01-22 10:05:52 UTC
Because of the above, I'm changing it back to a bug and setting to confirmed.