View Issue Details

IDProjectCategoryView StatusLast Update
0003834NoesisGUIStudiopublic2024-11-28 13:58
ReporterBenJo Assigned Tojsantos  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product VersionStudio_Alpha 
Target VersionStudio_Alpha 
Summary0003834: Drop Shadow Effect Colour isn't using sRGB
DescriptionThe drop shadow effect colour isn't using sRGB, where as most other places in Studio are - such as TextBlock stroke/foreground/background.

I dunno if this is on purpose? But it would be useful if it was at least an option.

We wanted to test using a matching colour drop shadow on some text, but it's difficult with the colour difference.

It's like that in Studio, as well as in Noesis GUI in Unreal.
Steps To Reproduce1. Create a project
2. Add a TextBlock
3. Give the TextBlock a Foreground or Stoke colour that's in the middle of the colour band (e.g. this green #FF45FF00)
4. Add a Drop Shadow Effect
5. Give the Drop Shadow Effect the same colour.

Notice they are different colours.
Tagsdropshadow, effect
PlatformAny

Activities

BenJo

BenJo

2024-11-28 12:38

reporter  

DropShadowEffectIssue.png (176,317 bytes)   
DropShadowEffectIssue.png (176,317 bytes)   
jsantos

jsantos

2024-11-28 13:57

manager   ~0010173

Last edited: 2024-11-28 13:57

We have this comment in code:

/// We don't really know why WPF converts shadow color to linear space, and it seems confusing to
/// other users too (https://stackoverflow.com/a/45813934). Anyway, we are going to do the same
/// conversion by default to match the results in Blend editor.
#define SHADOWCOLOR_TO_LINEAR 1

So this seems to be like that for compatibility with Blend, but I think that you are right and we should remove this hack.

Issue History

Date Modified Username Field Change
2024-11-28 12:38 BenJo New Issue
2024-11-28 12:38 BenJo Tag Attached: dropshadow
2024-11-28 12:38 BenJo Tag Attached: effect
2024-11-28 12:38 BenJo File Added: DropShadowEffectIssue.png
2024-11-28 13:00 jsantos Assigned To => jsantos
2024-11-28 13:00 jsantos Status new => assigned
2024-11-28 13:00 jsantos Target Version => 3.2.7
2024-11-28 13:57 jsantos Note Added: 0010173
2024-11-28 13:57 jsantos Note Edited: 0010173
2024-11-28 13:57 jsantos Note Edited: 0010173
2024-11-28 13:58 jsantos Target Version 3.2.7 => Studio_Alpha