Jump to content
You must now use your email address to sign in [click for more info] ×

Is color blend mode broken?


Recommended Posts

Hi! I've been quite much stuff with Affinity photo color blend mode and often I find out that it's not working in a way how it should work. Basically it's not only altering the color of the layer underneath, but also the value. Or is this a rendering problem? I also found out that if I add any FX to the layer, it fixes those artifacts. In case it means anything, I am running this on RTX 2060, windows 10. 
image.png.a701ec13a52eff5cd5a5bfddc1eda748.png

bug.afphoto

Link to comment
Share on other sites

16 minutes ago, Artturi said:

Basically it's not only altering the color of the layer underneath, but also the value.

I'm not sure what you mean by "value" in this context. The Blend modes are defined in terms of Hue, Saturation, and Luminance.

What it's supposed to do is this (from @dmstraker's Blend Mode Notes😞

Quote

Colour

Action: Creates a result colour with the luminance of the base colour and the hue and saturation of the blend colour.

Formula: Result = Hue(Blend) + Saturation(Blend) + Luminance(Base)

Effect: Preserves base layer luminosity. Colour comes from blend layer. Opposite of Luminosity. Stronger than Hue as it takes saturation from Blend layer rather than Base layer.

 

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

6 minutes ago, walt.farrell said:

I'm not sure what you mean by "value" in this context. The Blend modes are defined in terms of Hue, Saturation, and Luminance.

What it's supposed to do is this (from @dmstraker's Blend Mode Notes😞

 

It's creating those weird light spots in the image, even when the color layer don't have anything else expect one color and therefore those shouldn't be happening. 

Link to comment
Share on other sites

5 minutes ago, Artturi said:

It's creating those weird light spots in the image,

The Luminance comes from the lower layer. The upper (blend) layer only contributes Hue and Saturation.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

Just now, Artturi said:

Yep. So this is a bug? 

No. It's the way that blend mode is defined to work.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

Hi @Artturi  I can't put my finger on what's causing those cyan artefacts/highlights, sorry – your file opens and displays fine on my Mac system.

Could this be one of those your-graphic-card-driver-needs-updated scenarios that sometimes seems to trouble Windows users?

What version of Affinity Photo are you using?

blend.png.066add4490a676c9c6505af63f3a9ee4.png

—— Gary ——

Photo/Designer/Publisher: Affinity Store, v2.4.n release

Mac mini (M1, 2020), 16GB/2TB, macOS Ventura 13.4.1(c) • MacBook Pro (Intel), macOS Ventura • Windows 10 via VMware Fusion • iOS: current release

Link to comment
Share on other sites

49 minutes ago, Artturi said:

But the color layer is changing the luminance even when it's not supposed to do so... See this video. Or at least something it is doing wrong, since it creates those spots. 

I think you have just managed to find a particular (green) colour that gives that result.

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

  • Staff
14 minutes ago, GaryLearnTech said:

Hi @Artturi  I can't put my finger on what's causing those cyan artefacts/highlights, sorry – your file opens and displays fine on my Mac system.

Could this be one of those your-graphic-card-driver-needs-updated scenarios that sometimes seems to trouble Windows users?

Similar to Garys findings, this file opens correctly for me on Windows -

image.png

I suspect that this is a rendering issue - please download the latest driver from Nvidia and perform a 'Clean Installation', by selecting 'Custom Install' when offered 2 options.

If this does not change things, please navigate to Edit > Preferences > Performance and untick Hardware Acceleration at the bottom of the dialog. Restart the app as prompted and then load your document once more.

Do either of these steps resolve this rendering issue for you please? :)

Please note -

I am currently out of the office for a short while whilst recovering from surgery (nothing serious!), therefore will not be available on the Forums during this time.

Should you require a response from the team in a thread I have previously replied in - please Create a New Thread and our team will be sure to reply as soon as possible.

Many thanks!

Link to comment
Share on other sites

19 minutes ago, Artturi said:

But the color layer is changing the luminance even when it's not supposed to do so...

If I choose the color from your blend (upper) layer, and pick a particular spot in your base (lower) layer that looked interesting to me, I get the following (values listed are sampled from the image, and the two small squares are the same color, but the one on the left uses Color blend mode):

image.png.5d925586d235c828058d53610df4beaa.png

I can see there that the blend layer with Color blend mode kept the H and S values of the blend layer. But you're right that it also affected the L value of the result, pulling L up from 72 on the base to 81.

I'm not sure why that happens, but I recall a somewhat recent discussion here, which unfortunately I cannot find again, which delved deeper into blend modes. One of the points raised there (if i remember correctly) was that we speak of the blend modes as being based on Hue, Saturation, and Luminance but they are really defined based on other aspects (such as Chroma and Luma, not Hue or Luminance). But even considering HSL, I think the calculation of L involves the L of both the blend and the base layers.

Color-Blend-Mode.afphoto

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

2 hours ago, GaryLearnTech said:

Hi @Artturi  I can't put my finger on what's causing those cyan artefacts/highlights, sorry – your file opens and displays fine on my Mac system.

Could this be one of those your-graphic-card-driver-needs-updated scenarios that sometimes seems to trouble Windows users?

What version of Affinity Photo are you using?

blend.png.066add4490a676c9c6505af63f3a9ee4.png

I'm using 1.10. And my GeForce drivers seem to be up to date. Tho I don't have studio drivers, but game ready drivers. 
Never mind, there actually was a "optimize" button in the GeForce experience settings for affinity photo. After that click the problem disappeared at least mostly. Now it's doing only very slightly the same thing. 
 

Link to comment
Share on other sites

Hi,

i assume a bug in retail (left). Renders OK on beta (right).

Windows 10

Maybe related to

https://forum.affinity.serif.com/index.php?/topic/147356-blend-mode-saturation-with-hue-060-issue/&tab=comments#comment-820973

 

image.thumb.png.a074514f9f0123e882f078ffd5e7ebda.png

 

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

Damn, updating the drivers isn't always a panacea... I set "optimize apps" for all apps possible, and if the Affinity ones are faster, Menu entries disapear when the cursor is on them, so I can't click them.

Same problem for right-click menu that appear and disapear in a blink 😢

Link to comment
Share on other sites

40 minutes ago, Wosven said:

and if the Affinity ones are faster, Menu entries disapear when the cursor is on them, so I can't click them.

That sounds like Nahimic is active.

 

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

1 hour ago, Wosven said:

Thanks, but it's not it. But now I need to quit all the GPUtweak II and Asus utilities or I'm unable to click on menu options :(

Some if those may install Nahimic as a Windows Service, not as a normal application. If you haven't looked there, you should.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

18 minutes ago, walt.farrell said:

Dinner if those may install Nahimic as a Windows Service, not as a normal application. If you haven't looked there, you should.

"Dinner"?

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

39 minutes ago, R C-R said:

"Dinner"?

Sigh. Common auto-correct problem for me on my phone for "Some". Thanks. Fixed. (I try to remember to look, but sometimes I miss one.)

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

5 hours ago, walt.farrell said:

Some if those may install Nahimic as a Windows Service, not as a normal application. If you haven't looked there, you should.

Not as service either, I checked both. It seemsto be more complex than this exe.

I suspect, since only NVIDIA drivers were updated (and those folders modified), that it's a problem with the Nvidia Display Container  or the Nvidia GeForce Experience.exe and  Monitor and GPUTweak exe files.

Strangely, launching them now don't cause any problem... 

Next tests this evening.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.