uberzev
![]() |
Forground image...
![]() Set to 100% Opacity, Color Blending Mode Background image... ![]() -------------------------- Photoshop result... ![]() Filter Forge result... ![]() The luminosity mode also works differently. ![]() |
|||||
Posted: June 5, 2006 4:17 pm | ||||||
byRo
![]() |
Depends....
...using LAB mode in PS you get something similar. Rô ![]() _________________________________
My favourite question is "Why?". My second favourite is "Why not?" |
|||||
Posted: June 5, 2006 7:31 pm | ||||||
uberzev
![]() |
|
|||||
Posted: June 5, 2006 11:21 pm | ||||||
onyXMaster
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 ![]() As a side note, even Gimp implements these modes incorrectly and even "more" incorrectly than us ![]() |
|||||
Posted: June 5, 2006 11:57 pm | ||||||
byRo
![]() |
![]() 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.
![]() Rô _________________________________
My favourite question is "Why?". My second favourite is "Why not?" |
|||||
Posted: June 6, 2006 7:04 am | ||||||
onyXMaster
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
![]() 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 ![]() 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. |
|||||
Posted: June 6, 2006 8:19 am | ||||||
uberzev
![]() |
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.
|
|||||
Posted: June 6, 2006 8:44 am | ||||||
Quasimondo
![]() |
You can alway try to build your own blendmode by using the channel components. |
|||||
Posted: June 6, 2006 9:36 am | ||||||
onyXMaster
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"). |
|||||
Posted: June 6, 2006 9:46 am | ||||||
byRo
![]() |
![]() 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). ![]() Rô ![]() _________________________________
My favourite question is "Why?". My second favourite is "Why not?" |
|||||
Posted: June 6, 2006 10:59 am | ||||||
uberzev
![]() |
Looks like Overlay and Hard Light have been fixed. Luminosity and Color still work different from from Photoshop but I'm not greedy.
![]() |
|||||
Posted: January 9, 2007 9:28 am | ||||||
Vladimir Golovin
Administrator |
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
![]() |
|||||
Posted: January 9, 2007 12:55 pm | ||||||
uberzev
![]() |
|
|||||
Posted: February 13, 2007 4:44 pm | ||||||
Vladimir Golovin
Administrator |
This is the closest we could get. For a full match, we would need to reverse-engineer Photoshop, which we obviously won't do. |
|||||
Posted: February 14, 2007 4:40 am | ||||||
uberzev
![]() |
Forground Image...
![]() Background Image... ![]() Photoshop Color Blend Mode... ![]() Filter Forge Color Blend Mode... ![]() |
|||||
Posted: February 14, 2007 4:41 pm | ||||||
uberzev
![]() |
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...
![]() |
|||||
Posted: February 14, 2007 7:43 pm | ||||||
Vladimir Golovin
Administrator |
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.
|
|||||
Posted: July 6, 2009 9:45 am | ||||||
uberzev
![]() |
Sweet. 2.5 years later and you finally nailed it.
![]() |
|||||
Posted: July 6, 2009 11:14 am | ||||||
Kraellin
![]() |
which might occur... when?? If wishes were horses... there'd be a whole lot of horse crap to clean up!
Craig |
|||||
Posted: July 6, 2009 12:48 pm | ||||||
Betis
![]() |
A date would be heartily appreciated.
![]() Roses are #FF0000
Violets are #0000FF All my base are belong to you. |
|||||
Posted: July 6, 2009 3:50 pm | ||||||
Kraellin
![]() |
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 |
|||||
Posted: July 6, 2009 7:32 pm | ||||||
Betis
![]() |
Maybe's give me optimism.
![]() Roses are #FF0000
Violets are #0000FF All my base are belong to you. |
|||||
Posted: July 6, 2009 9:01 pm | ||||||
Kraellin
![]() |
yup. it's encouraging
![]() If wishes were horses... there'd be a whole lot of horse crap to clean up!
Craig |
|||||
Posted: July 7, 2009 8:22 am | ||||||
Crapadilla
![]() |
ROFL --- Crapadilla says: "Damn you, stupid redundant feature requests!" ;) |
|||||
Posted: July 7, 2009 2:06 pm |
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!
10 unregistered users.