Bug 362930

Summary: bevel and Emboss layer style makes the inside of the shape lighter
Product: [Applications] krita Reporter: michael grosberg <grosberg.michael>
Component: layer stylesAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: griffinvalley, halla, lok91101, nwurbs1, vitamorus.art
Priority: NOR    
Version First Reported In: 5.2.6   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: comparison of leyer with and without bevel-and-emboss layer style

Description michael grosberg 2016-05-11 09:31:01 UTC
bevel and emboss style is supposed to make the *edges* of the layer content bright or dark to achieve an effect of a raised surface, without affecting the interior of the content in any way. However Krita's layer effect currently makes the entire shape lighter with the same shade of color that the highlighted areas.

Reproducible: Always

Steps to Reproduce:
1. apply bevel-and-emboss layer style to layer
2. examine result
3.

Actual Results:  
the entire shape becomes lighter, shadowed edges become darker

Expected Results:  
highlighted edges become lighter, shadowed edges become darker
Comment 1 michael grosberg 2016-05-11 09:31:43 UTC
Created attachment 98903 [details]
comparison of leyer with and without bevel-and-emboss layer style
Comment 2 wolthera 2016-05-11 12:52:47 UTC
Yeah, confirmed. We spent a long time trying to fix it already, but right now photoshop's exact algorithm eludes us...
Comment 3 Halla Rempt 2016-05-14 11:15:46 UTC
Not a regression.
Comment 4 michael grosberg 2018-03-29 09:03:30 UTC
Not a programmer, so I can't tell if this works, but found something  - perhaps this could help with getting the algorithm right?
https://dsp.stackexchange.com/questions/530/bitmap-alpha-bevel-algorithm
Comment 5 Halla Rempt 2018-03-29 10:14:50 UTC
Thanks, we'll take a look
Comment 6 nwurbs1 2018-06-03 12:16:16 UTC
(In reply to Boudewijn Rempt from comment #5)
> Thanks, we'll take a look

Hello!
I'm bumping this ticket because it's been a long time since its submission and also quite a time since the last official reply.

I'm currently on version 4.0.3 and the issue is still there.
Are we expected to see a fix for this soon? It's the only reason I'm not too fond of using Krita for UI Design yet.
Comment 7 Halla Rempt 2020-04-10 08:26:49 UTC
No, there's no solution, the stackexchange link didn't actually help, and Krita isn't meant to be used for UI design...
Comment 8 Aiek 2022-11-21 10:12:13 UTC
I am just starting to try Krita, but see this problem in v5.1.3.  I think this needs a fix. Thanks.
Comment 9 Vitamorus 2024-12-14 00:38:43 UTC
Re-confirmed for 5.2.6.