It is currently Tue Nov 24, 2026 5:40 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Sun Jan 20, 2013 1:41 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
PhotoComix wrote:
not sure here , from where you derived something as Overlay=Multiply+0.5 Screen, and Soft light should be just 0.75-0.5 of the Overlay mode ?

The second in particular doesn't seems me correct, and here the situation is a bit confusing because exist more then 1 formula for Overlay



It may not be correct mathematically, I just go with current GMIC calculations and experimenting a bit.
We can't really argue here before we know exactly what formula is used for Overlay mode in GMIC, like Kevin said, only David can answer this.


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Sun Jan 20, 2013 3:36 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Hi,
I've made these blending filters a long time ago, so I'm not sure how I choose the order of the layers.
What I can say is I used the formula from there, if I remember well :
http://www.simplefilter.de/en/basics/mixmods.html

and that in the G'MIC plug-in, the layers are ordered from the top layer (image [0]) to the bottom layer (a Garagecoder said). Maybe some of the G'MIC blending modes are not correctly ordered or does not use proper formulas. If this is the case, then yes, I need to fix that as soon as possible, even if that breaks some code using these incorrect (for now) blending modes. I'm not a fan of keeping bugs too much time, just for compatibility reasons.


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Sun Jan 20, 2013 4:13 pm  (#13) 
Offline
GimpChat Member

Joined: Sep 24, 2012
Posts: 275
Location: Scotland
I've tested a few and here are the differences I noticed from gimp 2.8.0 :

burn - reversed
divide - reversed
grain extract - different calculation
hard light - reversed
overlay - reversed
softlight - reversed

A few of them behave strangely since it appears you are controlling the opacity of the wrong layer but I assume that's just due to the reversal.


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Sun Jan 20, 2013 10:52 pm  (#14) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
garagecoder wrote:
I've tested a few and here are the differences I noticed from gimp 2.8.0 :

burn - reversed
divide - reversed
grain extract - different calculation
hard light - reversed
overlay - reversed
softlight - reversed

A few of them behave strangely since it appears you are controlling the opacity of the wrong layer but I assume that's just due to the reversal.


i was never able to explain what what baffling me regarding layer modes and layer position , i believe here you explain well
Quote:
"A few of them behave strangely since it appears you are controlling the opacity of the wrong layer"
i will say some look correct at full opacity, then when is lowered seems that is the wrong layer to have opacity lowered but also simultaneously to be moved on "top"
(because if was lowered the opacity of the base layers effect would be , for not commutative mode very different , instead is how if is lowered opacity of the top layer but suddenly is the wrong layer to be on top )

What looks more complex is fix without break a lot of filters that may have create nice effects adapting "wrong" mode , i believe this old modes should be maintained at least temporary, and hopefully progressively replaced by the correct ones..
.maybe using same names but with a added prefix to help to distinguish the new correct version

Or if capital letters are supported that could be a way to distinguish ,as -Softlight(revised) and -soflight(that used now )

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Mon Jan 21, 2013 4:35 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Well, I've done some fixes to make the G'MIC blending modes more correct.
Now, the order of the layers should be logical when using the plug-in.

For G'MIC script writers (garagecoder) : Note that the '-compose_*' commands were assuming that the image [0] was the background (bottom layer), and [1] the foreground (top layer). It is always the case, I didn't change this order, to avoid breaking all compose functions. Some of these 'compose_*' commands were also incorrect as they were considering reverted layers (as compose_lightness, compose_hue, etc..), but most were OK.
The only thing I've made is to consider now that GIMP specific blending commands '-gimp_compose_*' assumes now that the layers are ordered in the GIMP order (so top layer is [0] and bottom layer is [1]). This is the reverse of the 'compose_*' command, but as they are GIMP-specific commands, I prefer that they follow the 'natural' order of layers brought by the plug-in.


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Mon Jan 21, 2013 6:14 am  (#16) 
Offline
GimpChat Member

Joined: Sep 24, 2012
Posts: 275
Location: Scotland
OK so if I understand correctly the basic compose_ commands (those in the reference page) are unchanged but the gimp_ specific ones are? I think that makes sense, hopefully not too many filters affected ;)
So at least now the [blend] filters in the filter tree will work as most expect, that's the main thing!


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Mon Jan 21, 2013 7:03 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Yes exactly.
To be honest, I'm currently developing new 'blend_*' commands to replace the '-compose_' ones, with more blending modes than before, and having the possibility to choose the opacity as well.
So GIMP blending commands will use them (as well as old '-compose_*' which will become deprecated in the future).


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Mon Jan 21, 2013 11:18 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
You are da man, David! :tyspin


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Mon Jan 21, 2013 5:13 pm  (#19) 
Offline
GimpChat Member

Joined: Jan 21, 2013
Posts: 33
Hello everyone,

Ronounours wrote:
> To be honest, I'm currently developing new 'blend_*' command

Wow. Great to know indeed!

I have read krita supports the largest set of blending mode among open source softwares (correct me if I am wrong...).
More precisely, it looks like there are around 71 of them.
Unfortunately, right now, I can not paste here the link with their descriptions (my web-link is deemed "spammer"...).

Just to list some of them:
Arcus Tangent, Gamma Light, Gamma Dark, Geometric Mean, Vivid Light, Pin Light, Grain Merge", "Grain Extract", "Hard Mix", "Copy Red/Green/Blue/Opacy", Additive-Substractive, improved divide, Soft Light, Hard Light, Atop, HSY, HSV, HSL, HSI, dissolve and Overlay

Perhaps, some of them, might be added in some future versions of G'mic

Best regards

Silvio Grosso


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Tue Jan 22, 2013 12:31 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Some more words about my recent developments of G'MIC blending modes :

http://www.flickr.com/groups/gmic/discu ... 587736884/

It will rock :D, but due to a bug in command '-image', it will be only available for the next stable release (1.5.4.0), and I cannot backport these new commands to current stable versions.


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Tue Jan 22, 2013 1:08 pm  (#21) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
Hi Silvio Grosso!
It looks really interesting (Win 32 bit-Krita 2.6 on Windows, the Next Step)
http://www.kogmbh.com/download.html
I installed the Win - and so far I am very happy!

ps. Any progress with the integration of GMIC for Krita?


Attachments:
Kita-Layers 1.png
Kita-Layers 1.png [ 1.13 MiB | Viewed 2767 times ]

_________________
Image
Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Tue Jan 22, 2013 2:09 pm  (#22) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
No progress done so far from the G'MIC side, but I'm more and more attracted by the idea.
Maybe this is something I could propose for a GSOC project.


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Tue Jan 22, 2013 2:31 pm  (#23) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
Krita - it's brilliant, "the younger child GIMP" (according to my humble knowledge).
GMIC - those are fused (TOP) accessories (all in one).
Why are the issues to make it connect ?

_________________
Image


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Tue Jan 22, 2013 2:51 pm  (#24) 
Offline
GimpChat Member

Joined: Jan 21, 2013
Posts: 33
Hello everyone,

@ MareroQ: I am glad you like Krita.
At the very beginning of February, its next stable version (2.6) should be released.
At present, IMHO, its Linux version is much *more* stable though.

Naturally, Krita and Gimp have very different purposes since Krita is much more geared towards painting nowdays.

@ Ronounrours wrote:
>No progress done so far from the G'MIC side, but I'm more and more attracted by the idea.
>Maybe this is something I could propose for a GSOC project.

Needless to say, having G'MIC integrated into Krita would be faboulous.
You would have all its filters available for Krita's painters too.
Especially the new extraordinary filter Recolorize just to name one :-)

At present, for a GSOC I suppose you might even consider using the QT version of G'MIC (ZArt) since Krita is written using the QT libraries as well.
Unfortunately, from what I have gathered "googling", this QT version of G'MIC is still VERY sperimental :-(
Besides, I am not a developer and perhaps this last suggestion of mine does not make much sense in the end...

Best regards,

Silvio Grosso


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Tue Jan 22, 2013 3:21 pm  (#25) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
My dream:
For ordinary users (eg do not have Adobe PS) is only a request:
- Add support for plugins in Krita
- The integration of GMIC for Krita
Are these dreams are real? When?

_________________
Image


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Tue Jan 22, 2013 4:26 pm  (#26) 
Offline
GimpChat Member

Joined: Jan 21, 2013
Posts: 33
Hello MareroQ,

Regarding Krita I can testify that its development is very active (really!).
Lately, for instance, they have even released a version to be used on Tablets: its name is Krita Sketch.
However, as of today, you are forced to use this version with Microsoft Tablets - Windows 8 (Intel CPU)... :-(

Regarding a plugin system for Krita I have not read anything concerning this topic on the Krita's forum (and on its developer mailing list)
As usual with Open Source softwares every implementation depends on the interest of some developers to work on it...

To my knowledge, most developers' efforts regarding Krita are generally concentrated on the Brush engines (there are so many of them on Krita compared to other softwares: e.g. Gimp and MyPaint...).

For instance regarding Krita:
- it is multi-threaded and can use all cores in a multi-core machine;
- krita's internal format is whatever the user chooses, 8 or 16 bit integer, 16 or 32 bit floating point, hence it is possible painting in 16 bit RGB;
- you can import and export the Psd format;
- its set of blend modes is impressive;
- you can rotate the canvas while you paint and so on and so forth.

Krita is aimed to *professional* painters and naturally there is always a lot of work to do (bugs to fix, documentation to complete etc) :-)

Regarding G'MIC I suppose its developer wants to concentrate most efforts on his software instead of working for porting G'MIC on another application (namely Krita).
This is *quite* normal in my opinion :-)
However, I am confident that having G'MIC integrated somehow into Krita would give much more exposure to G'MIC as well (on top of making Krita even much more powerful than now).
Especially since Krita works on Windows now as well (even though its Linux version is much more stable IMHO).

As explained, I am not a developer and I do not how much work this would entail...
Usually, for achieving a great experience (not some quick hacks...) you need to invest a lot of time on this porting...
Surely, getting a talented student to work on this project during a Google Summer of Code would help a lot :-)

Best regards,

Silvio Grosso


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Tue Jan 22, 2013 5:24 pm  (#27) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I already commented on Flickr, i believe you chose the best by replacing with a new series of commands

For my filters i will do my best to update quickly

Even before the proper filters ,i would have to redo that group of "combined merging modes " that i used as component in many of my filters ,in other word as first step i would have to recreate 5 additional merging mode and to do it i should understand well the new -blend command

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Tue Jan 22, 2013 5:35 pm  (#28) 
Offline
GimpChat Member

Joined: Sep 24, 2012
Posts: 275
Location: Scotland
I'd like to be able to create a gmic plugin for krita but I just can't commit to it yet since I still have to learn c++ properly. For now I'm integrating gmic into a gui (only as a filter coding tool for myself NOT as a new paint program!) so I can figure what's involved. By the time I've learned enough to do the krita plugin I would hope somebody else has already finished! Something like this would really raise gmic's profile so I hope someone can take it on.

Back on subject, the blend command changes David have made are really great :yes


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Tue Jan 22, 2013 9:38 pm  (#29) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Read your post at Flickr, David. Sorry, if I caused you too much headache in the past two days.
I'm happy you got all this figured out, sooner or later it had to be done. And sooner is better than later.

Thank you.


Top
 Post subject: Re: GMIC "Overlay" and 'Soft Light" blend modes
PostPosted: Thu Jan 24, 2013 3:30 am  (#30) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Finally, I found a quick hack to make the new 'blend' mode fully compatible with current stables 1.5.2.0+
So, I'll update the blending filters soon !

EDIT : Updated, just press the 'Refresh' button and it should be there.


Last edited by Ronounours on Thu Jan 24, 2013 5:41 am, edited 1 time in total.

Top
Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group