YOUR ACCOUNT

Login or Register to post new topics or replies
uberzev
not lyftzev

Posts: 1890
Filters: 36
Forground image...


Set to 100% Opacity, Color Blending Mode

Background image...


--------------------------

Photoshop result...


Filter Forge result...



The luminosity mode also works differently. smile:(
  Details E-Mail
byRo
an Englishman in Brazil

Posts: 138
Filters: 8
Depends....

...using LAB mode in PS you get something similar.

Rô

_________________________________
My favourite question is "Why?".
My second favourite is "Why not?"
  Details E-Mail
uberzev
not lyftzev

Posts: 1890
Filters: 36
Quote
byRo wrote:
Depends....

...using LAB mode in PS you get something similar.
Well I believe most people (including me) are used to using RGB by default.
  Details E-Mail
onyXMaster
Filter Forge, Inc.
Posts: 350
Unfortunately, Photoshop blending modes aren't properly documented anywhere and while most of modes are described somewhere on the Net or in the books, Saturation, Color and Luminosity aren't. We did our best to guess the internal formulas of Photoshop for those, but we know that they are not identical, especially for different saturations -- looks like Photoshop "multiplies" saturation when doing HSY blending, but the exact nature of this "multiplication" is not known to us.

If you have some insider info or a proper description of the Photoshop HSY blending algorithms -- please share with us smile:)

As a side note, even Gimp implements these modes incorrectly and even "more" incorrectly than us smile:D
  Details E-Mail
byRo
an Englishman in Brazil

Posts: 138
Filters: 8
Quote
uberzev wrote:
Well I believe most people (including me) are used to using RGB by default.
Yep, that's why I thought the comment was necessary.
smile;)

Although RGB may seem more "natural" it is not the best representation of a colour, nor is it how a printer works, nor is it how our eyes work.
Photoshop does not "work" in RGB and, so it seems, neither does FF.

However, I fully agree that colouring full black and white with red, and getting something different does seem very un-natural.

I can only wish Good Luck to onyXMaster and the guys, 'cuz I know there's a lot going on under the hood to make this look simple to us.

Quote
onyXMaster wrote:
As a side note, even Gimp implements these modes incorrectly and even "more" incorrectly than us
By "correct" you mean "just like Photoshop"? smile;)

Rô
_________________________________
My favourite question is "Why?".
My second favourite is "Why not?"
  Details E-Mail
onyXMaster
Filter Forge, Inc.
Posts: 350
Well, I'd argue that RGB is very close to how our eyes work (not including the gamma correction and the additional Y "channel" present in our eyes) -- Lab is not closer smile:)

The problem of Lab is it's poor visual representation charasteristics -- HLS and to some degree RGB are much better at that (while L channel is pretty straightforward, a and b are not).

Printers are a wholly different story, while you may _assume_ RGB as device-independent color model, you certainly can't do that with CMYK, thanks to all those coating settings, subtle and not-very-subtle ink chromaticity and density differences smile:)

And yes, by "correct" I mean "just like Photoshop".

On topic: I can promise that we'll look further into improving blending modes compatibility with Photoshop, but cannot give any certain promises whether it will be fully compatible.
  Details E-Mail
uberzev
not lyftzev

Posts: 1890
Filters: 36
The Color blending mode in Photoshop changes the Hue and Saturation of the underlying layer while leaving the Lightness intact. I don't understand why that's so difficult to implement.
  Details E-Mail
Quasimondo
Quasimondo

Posts: 147
Filters: 32
Quote
uberzev wrote:
The Color blending mode in Photoshop changes the Hue and Saturation of the underlying layer while leaving the Lightness intact. I don't understand why that's so difficult to implement.


You can alway try to build your own blendmode by using the channel components.
  Details E-Mail
onyXMaster
Filter Forge, Inc.
Posts: 350
Because the "HLS" values used in the Photoshop blending modes Color, Hue, Saturation and Luminosity are not even close (well, Hue is the same) to the traditional HLS model. For these blending modes they use some variation on HSY model, close to Alan Hanbury's IHLS (see "A. Hanbury, The Taming of the Hue, Saturation and Brightness Colour Space, 7th Computer Vision Winter Workshop, February 2002, Bad Aussee, Austria", http://www.prip.tuwien.ac.at/~hanbury/CVWW02.pdf).

Just open Photoshop and try Luminosity blend of a spectrum gradient (traditional HLS has a 50% value for fully saturated color) with any photo. You won't get a pure gray image as you should, you'll see the Y spectrum bands (Y is equal to 0.298839*R + 0.586811*G + 0.114350B in Photoshop, derived from traditional CCIR
Recommendation 601-1, C Illuminant aka "old NTSC").
  Details E-Mail
byRo
an Englishman in Brazil

Posts: 138
Filters: 8
Quote
uberzev wrote:
The Color blending mode in Photoshop changes the Hue and Saturation of the underlying layer while leaving the Lightness intact. I don't understand why that's so difficult to implement.
It isn't.
smile:)

The difficult bit is deciding how to represent the mixture that results.
As per you example, Luminosity is 0% or 100%, Hue is 0% and Saturation is 100%.

What Hue 0%, Saturation 100%, Luminosity 100% represents depends on each colour mode. (see image).

The conclusion.

Those used to working in Photoshop have a choice of modes to work in, sometimes because one is more suited to the job, more usually because of personal preference.
Filter forge does not have this option. It uses the HSY model - which, BTW, does not exist as an option in PS.
This means, as uberzev has demonstrated, that some operations may give "unexpected" results.

I see three options:
a) Learn how to work in HSY;
b) Ask onyXMaster and the guys to give us mode options;
c) As Quasimondo commented - make your own blenders.

My money's on a). smile;)

Rô

_________________________________
My favourite question is "Why?".
My second favourite is "Why not?"
  Details E-Mail
uberzev
not lyftzev

Posts: 1890
Filters: 36
Looks like Overlay and Hard Light have been fixed. Luminosity and Color still work different from from Photoshop but I'm not greedy. smile:D
  Details E-Mail
Vladimir Golovin
Administrator
Posts: 3446
Filters: 55
Yes, we've fixed all blending modes except for those you mentioned -- to fix them we must know the coefficients that the Adobe programmers used in their HSY calculations, and I don't think that reverse-engineering Photoshop is a good idea smile:)
  Details E-Mail
uberzev
not lyftzev

Posts: 1890
Filters: 36
Quote
Vladimir Golovin wrote:
Yes, we've fixed all blending modes except for those you mentioned -- to fix them we must know the coefficients that the Adobe programmers used in their HSY calculations, and I don't think that reverse-engineering Photoshop is a good idea
I see your point. Still I think it should be changed so that it is at least somewhat similar, or alternatively make note of the difference in the FF literature.
  Details E-Mail
Vladimir Golovin
Administrator
Posts: 3446
Filters: 55
Quote
uberzev wrote:
I see your point. Still I think it should be changed so that it is at least somewhat similar


This is the closest we could get. For a full match, we would need to reverse-engineer Photoshop, which we obviously won't do.
  Details E-Mail
uberzev
not lyftzev

Posts: 1890
Filters: 36
Forground Image...


Background Image...


Photoshop Color Blend Mode...


Filter Forge Color Blend Mode...
  Details E-Mail
uberzev
not lyftzev

Posts: 1890
Filters: 36
Its not perfect by any means, but changing the internal math of color & luminosity to use HSL instead of HSY produces results much more similar to Photoshop's...

  Details E-Mail
Vladimir Golovin
Administrator
Posts: 3446
Filters: 55
Literally an hour ago we've figured out the right coefficients for the HSY-based blending modes. We'll roll out the fix (and some more) with the first beta of v2.0.
  Details E-Mail
uberzev
not lyftzev

Posts: 1890
Filters: 36
Sweet. 2.5 years later and you finally nailed it. smile;)
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
Quote
We'll roll out the fix (and some more) with the first beta of v2.0.


which might occur... when??
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Betis
The Blacksmith

Posts: 1207
Filters: 76
A date would be heartily appreciated. smile:)
Roses are #FF0000
Violets are #0000FF
All my base are belong to you.
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
i found this after i posted, betis; he mentions maybe in the autumn for first beta... maybe.
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Betis
The Blacksmith

Posts: 1207
Filters: 76
Maybe's give me optimism. smile:)
Roses are #FF0000
Violets are #0000FF
All my base are belong to you.
  Details E-Mail
Kraellin
Kraellin

Posts: 12749
Filters: 99
yup. it's encouraging smile:)
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Crapadilla
lvl 52 Filter Weaver and Official "Filter Forge Seer"

Posts: 4365
Filters: 65
Quote
uberzev wrote:
Sweet. 2.5 years later and you finally nailed it. Wink


ROFL
--- Crapadilla says: "Damn you, stupid redundant feature requests!" ;)
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,711 Registered Users
+18 new in 30 days!

153,533 Posts
+38 new in 30 days!

15,348 Topics
+73 new in year!

Create an Account

Online Users Last minute:

10 unregistered users.

Recent Forum Posts: