Layer effect anti-aliasing issue

Hier diskutieren die Betatester von PhotoLine untereinander und mit den Entwicklern
User avatar
Herbert123
Mitglied
Posts: 1990
Joined: Sat 12 May 2012 21:38

Layer effect anti-aliasing issue

Post by Herbert123 »

anti-aliasing_issue.png
When Special Emboss is applied in this example the anti-aliasing is rather problematic in the left top edge area. Applying a dark glow inside effect exacerbates the issue, resulting in too obvious aliased edges.

Ideally the anti-aliasing would be much less aliased looking :wink:

I've attached a demo file.
You do not have the required permissions to view the files attached to this post.
/*---------------------------------------------*/
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
User avatar
der_fotograf
Mitglied
Posts: 470
Joined: Mon 05 Dec 2016 08:33

Re: Layer effect anti-aliasing issue

Post by der_fotograf »

How does it look in print?
Nur wenige wissen, wie viel man wissen muss, um zu wissen, wie wenig man weiss.
Only few know how much you have to know to know how little you know.
— Werner Heisenberg [German theoretical physicist]
User avatar
Herbert123
Mitglied
Posts: 1990
Joined: Sat 12 May 2012 21:38

Re: Layer effect anti-aliasing issue

Post by Herbert123 »

I am unsure, but seeing print ink is more forgiving for these type of artefacts: probably not as bad.

That said, I mainly work on screen graphics nowadays. And this is quite visible.
/*---------------------------------------------*/
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
User avatar
shijan
Mitglied
Posts: 1070
Joined: Mon 23 Dec 2019 15:21
Location: Ukraine

Re: Layer effect anti-aliasing issue

Post by shijan »

Well Herbert123, as it was confirmed by developers - Layer Styles (and i guess Light as a part of Layer Styles system) are raster-based and 8 bit only. In pair with low resolution image source this produce Banding and seems also edge Aliasing artifacts. 8 bit is just not precise enough for this sort of effects.
You may try to use higher resolution source, apply Style and then downscale final baked raster. But larger image will produce more banding :)
You may also adjust "Emboss - Border From" curve to give it more pixels on the edge.
Image
Last edited by shijan on Tue 31 Aug 2021 13:07, edited 1 time in total.
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
User avatar
shijan
Mitglied
Posts: 1070
Joined: Mon 23 Dec 2019 15:21
Location: Ukraine

Re: Layer effect anti-aliasing issue

Post by shijan »

This checkbox seems may improve things a little bit:
Image
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
User avatar
shijan
Mitglied
Posts: 1070
Joined: Mon 23 Dec 2019 15:21
Location: Ukraine

Re: Layer effect anti-aliasing issue

Post by shijan »

And as expected worst case scenario is to use monochrome gradient. All artifacts became even more amplified when limited to 256 monochrome shades.
Adjusting source size and snapping it to pixel grid also don't fix edge artiafact.
Image
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
User avatar
shijan
Mitglied
Posts: 1070
Joined: Mon 23 Dec 2019 15:21
Location: Ukraine

Re: Layer effect anti-aliasing issue

Post by shijan »

And seems source of the problem - too extreme curve shape of Light source 2
Image
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
User avatar
Herbert123
Mitglied
Posts: 1990
Joined: Sat 12 May 2012 21:38

Re: Layer effect anti-aliasing issue

Post by Herbert123 »

Thanks! I never bothered looking at the secondary light curves. It works much better now.

Still, it would great if the anti-aliasing wouldn't be affected that much by a lighting curve. Perhaps something for the devs to look into.

That said, the adjusted curve in combination with a slight Median filter applied yields a good result.

ex02.png
You do not have the required permissions to view the files attached to this post.
/*---------------------------------------------*/
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait