Simulating a "substractive" blend mode?

Get help using Construct 2

Post » Sat Jun 04, 2016 6:55 pm

Is there any elegant (read: not too taxing on performance or data volume) way of making an object behave the exact opposite than with the "additive" blend mode?

For example, if the object is a pixel with the RGB values 0-50-0 and it's in front of a pixel with 100-100-100, I need the resulting pixel that's actually displayed on screen to be 100-50-100.

I've experimented with opacity settings and gamma values in the overlaying object, but they don't seem to work in any way that can give me the exact results I want.
B
7
S
1
Posts: 12
Reputation: 401

Post » Mon Jun 06, 2016 4:30 am

OK, in the unlikely case anyone else wants to do this: There's a layer effect that is exactly that.

Wonder if there's a specific reason why it's not available as an ordinary blend mode, though...
B
7
S
1
Posts: 12
Reputation: 401

Post » Mon Jun 06, 2016 6:32 pm

The blend modes are something that will work even without webgl. So without webgl that's the limit what can be done. Once webgl is supported absolutely everywhere subtractive could just as well be a blend mode I'd imagine.
B
92
S
32
G
109
Posts: 5,294
Reputation: 70,999


Return to How do I....?

Who is online

Users browsing this forum: TRMG and 39 guests