Created attachment 152798 [details] abnormal blur SUMMARY When I develop my application(which has rounded window), I found some problem (lots of blur horizontal striation) when the app open/close. STEPS TO REPRODUCE 1. Run or stop the app. 2. Watch it. OBSERVED RESULT I have added an attachment. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.18 and 5.26 (only tested on these version) (available in About System) KDE Plasma Version: 5.26 KDE Frameworks Version: 5.98 Qt Version: 5.15.5 ADDITIONAL INFORMATION I tried to modify blur effect's shader, make all fragColor = vec4(0, 1, 0, 1), the horizontal striation not disappear, just turn to green striation. Then I tried to changed scale effect, found that only scale property influence the result. If someone can provide ideas, I'd like to try~
I have an idea: when QRegion represents a circle, it will divide the circle into small rectangles, some with a height of 1, others with a height of 2 or more, and rectangles with a height of 1 will disappear after scaling, while others will remain to form stripes. I don't know if my guess is correct.
> I have an idea: when QRegion represents a circle, it will divide the circle into small rectangles, some with a height of 1, others with a height of 2 or more, and rectangles with a height of 1 will disappear after scaling, while others will remain to form stripes. > > I don't know if my guess is correct. No idea how it's actually made, but that sounds like kind of an issue which OpenGL tessellation guarantees were supposed to prevent. Standard mandates that adjacent triangles must be sampled without gaps.
Git commit 8468eeafdd8d4dfac0a61de077687b1961ff73da by Vlad Zahorodnii, on behalf of Mouse Zhang. Committed on 21/10/2022 at 10:01. Pushed by vladz into branch 'master'. effects/blur: Fix blur stripes when rounded window scaling M +2 -2 src/effects/blur/blur.cpp https://invent.kde.org/plasma/kwin/commit/8468eeafdd8d4dfac0a61de077687b1961ff73da