Bug 384662

Summary: Layer Styles light direction is incorrect
Product: [Applications] krita Reporter: Victor Wren <artgoat>
Component: layer stylesAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: minor CC: freebox64, halla
Priority: NOR    
Version: 3.2.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Selector indicates light source at zero degrees, but light source appears to be at 90 degrees.

Description Victor Wren 2017-09-13 14:02:20 UTC
Created attachment 107833 [details]
Selector indicates light source at zero degrees, but light source appears to be at 90 degrees.

SUMMARY:
In the Layer Styles, styles which allow for the selection of lighting direction, the selected lighting direction does not correspond to the resulting light direction in the effect.

STEPS TO REPRODUCE:
Create a layer.  Fill it with 50% grey.  Create another layer.  Paint several hard-edged spots in a contrasting color.  Pull up layer effects and check "Drop shadow" or "Bevel and Emboss."  Uncheck "Use Global Light" and check "Preview"  Play with the lighting direction and note the following:

The location of the spot on the rotary graphic selector corresponds to neither the direction of the shadow, nor the apparent direction of the light source.  Also note that as the angle is increased in the numeric selector, the spot on the graphic selector rotates clockwise, while the shadows on the canvas rotate counter-clockwise.

EXPECTED BEHAVIOR:  The spot on the graphical rotary selector would represent the light source, and drop shadows would appear opposite from it's position.  Also, when rotating the selector clockwise, the shadow would progress around the object casting it in the clockwise direction.
Comment 1 mvowada 2018-01-21 16:24:01 UTC
(I can confirm this behaviour on Ubuntu 14.04 - Krita 4.0.0-beta1.1.appimage)

Maybe the selector right now seems not very intuitive when thinking in terms of cartesian coordinate system... a solution might be:

1) moving the dot on the right (0 degrees)
2) inverting the rotation direction. 

PS. however it does increases and decreases the lighting angle correctly yet
Comment 2 Victor Wren 2018-01-21 17:49:07 UTC
This appears to be a duplicate of 372169
Comment 3 mvowada 2018-01-21 21:26:46 UTC
(In reply to Victor Wren from comment #2)
> This appears to be a duplicate of 372169

Yes, I think so.

*** This bug has been marked as a duplicate of bug 372169 ***