It is currently Tue Jul 23, 2024 6:23 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: is there a way to get more layermodes ?
PostPosted: Thu Sep 22, 2016 10:43 am  (#1) 
Offline
GimpChat Member

Joined: Sep 20, 2016
Posts: 293
I know there is G'MIC "Layers - Blend [Standard]", but this filter is not ideal because i can not adjust it at a later time (and it hasnt got the one im looking for).

Im especially interested in the "Color Dodge" blendmode. Here is a video that shows the effect im interested in:
https://www.youtube.com/watch?v=WstmMT_J-oM

I know Krita has a lot more Layermodes (also the one im interested in) and im wondering if its possible to use that code and add it somehow to Gimp ?
Checked Gimp 2.9, but that version hasnt much to offer when it comes to new layermodes.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Thu Sep 22, 2016 11:11 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
I suppose you did already try to use the std Dodge mode in Gimp (add new transparent layer to an image, paint some areas with the colour(s) you like using a soft brush, set mode = Dodge, adjust opacity)
does this effect not satisfy your requirements? (this idea came out by looking at the video you linked with the Dodge effect in Photoshop)

_________________
"Where am I ?"


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Thu Sep 22, 2016 11:24 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
example of Blend Mode in Gimp

original
Attachment:
original.jpg
original.jpg [ 118.54 KiB | Viewed 4384 times ]


layer with some colours paints (dodge)
Attachment:
color-paints.png
color-paints.png [ 121.37 KiB | Viewed 4384 times ]


outcome
Attachment:
zenia_by_xeneras-daab3ja_result.jpg
zenia_by_xeneras-daab3ja_result.jpg [ 123.35 KiB | Viewed 4384 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Thu Sep 22, 2016 11:34 am  (#4) 
Offline
GimpChat Member

Joined: Sep 20, 2016
Posts: 293
"Dodge" has a different effect as "Color Dodge".

There must be a way to hack Gimp and add new layermodes. Its just code.


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Thu Sep 22, 2016 11:38 am  (#5) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Konstantin wrote:
There must be a way to hack Gimp and add new layermodes. Its just code.


Congratulations on the understatement of the year ;)

I'm sure the developers would genuinely welcome your code contributions.

Kevin


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Thu Sep 22, 2016 11:43 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
if you can access Photoshop, can you post what would have been the result using the source image and those colours on a separate layer I posted and Photoshop Blend effect? Just to know

_________________
"Where am I ?"


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Thu Sep 22, 2016 12:25 pm  (#7) 
Offline
GimpChat Member

Joined: Sep 20, 2016
Posts: 293
paynekj wrote:
Konstantin wrote:
There must be a way to hack Gimp and add new layermodes. Its just code.


Congratulations on the understatement of the year ;)

I'm sure the developers would genuinely welcome your code contributions.

You misunderstand. There are already layermodes in Gimp.
The formulas for layermodes are available on the net.

So there is already a template in Gimp for layermodes, and there is the formula for other layermodes.
Nothing has to be invented. Thats what i meant when i said "its just code".



@dinasset: no access to Photoshop right now.
From the PS site:

Quote:
Color Dodge
Looks at the color information in each channel and brightens the base color to reflect the blend color by decreasing contrast between the two. Blending with black produces no change.


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Thu Sep 22, 2016 1:21 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
well, I did use that simple combination of layers also in G'MIC Blend Dodge (which David -as said in another post- checked to make use of the same mat formula as PS), but I didn't see differences with Gimp output.
probably it's just my eyes

_________________
"Where am I ?"


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Thu Sep 22, 2016 1:44 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 02, 2014
Posts: 137
Rod, dinasset, &others hello long time no see


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Thu Sep 22, 2016 9:43 pm  (#10) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
This is interesting.
Maybe you'll be able to work with something like this
using Addition mode and decrease opacity (as suggested here --> Is there an equivalent to photoshop's "color dodge" layer mode in Gimp?)
original:
Image
add a glow painted layer, set to Addition mode (at about 70% opacity).
Image
add a ring painted layer, set to Addition mode (at about 70% opacity).
Image

result:
Image

If you're happy with the result and wondered how i did the glow with some solid fill and some transparency for dark areas, is I duplicated the original, and applied threshold and used a threshold of some value where some darks are shown as black then color select black and selected the dark blue glow layer and then used erase with opacity set to 50% and erased the selected darks... all this trying to simulate that "blend if" option shown in video, then I gausian blurred that dark blue glow layer.

_________________
TinT


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Thu Sep 22, 2016 10:16 pm  (#11) 
Offline
GimpChat Member

Joined: Sep 20, 2016
Posts: 293
Im afraid i was wrong and dinasset and Rononours were right.
Dinasset's example image with the girl confused me and my experiments with PS and Gimp were flawed (i used different levels of hardness on the brushes and exchanging layers between the programms was difficult because PS does not seem to have a straightforward way of importing or exporting transparency).

Dodge and Color Dodge are the same layermodes.

I still have to give props to trandoductin for hacking the y-tube technique, especially the blending options thing ! :bigthup

But besides, im still interested if its possible to somehow add more layermodes to the current Gimp, because sometimes the choice of layermodes seem to be a bit limited.


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Thu Sep 22, 2016 10:52 pm  (#12) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
So I guess Dodge is Color Dodge...
I just had to try it and see
Here's a comparison (I think I like the Dodge side better maybe 70% Addition is a little too low for the effect).
Image

_________________
TinT


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Fri Sep 23, 2016 7:43 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14728
Location: USA
gbarkovalev wrote:
Rod, dinasset, &others hello long time no see

Hello we miss your artwork. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Fri Sep 23, 2016 5:39 pm  (#14) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
stupid me, threshold was kind'a lame.
If you just desaturate the original image and use that as a mask, you'll get some really nice blend-if like effect.

Edit: You don't even have to desaturate the original just use it as mask it'll automatically desaturate(when it's applied as mask).

_________________
TinT


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Fri Sep 23, 2016 7:21 pm  (#15) 
Offline
GimpChat Member

Joined: Sep 20, 2016
Posts: 293
trandoductin wrote:
Edit: You don't even have to desaturate the original just use it as mask it'll automatically desaturate(when it's applied as mask).

Yes, thats how i would do it as well: apply a greyscale layermask from image and then Threshold or Level.
I think thats technically what PS does.


Top
 Post subject: Re: is there a way to get more layermodes ?
PostPosted: Tue Sep 27, 2016 8:08 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Sep 20, 2011
Posts: 53
Konstantin wrote:
Dodge and Color Dodge are the same layermodes.


According to Wikipedia:

The Color Dodge blend mode divides the bottom layer by the inverted top layer. This lightens the bottom layer depending on the value of the top layer: the brighter the top layer, the more its color affects the bottom layer. Blending with white gives white. Blending with black does not change the image. The operation is not invertible due to possible clipping of highlights. (The clipping happens in the same area as for the Linear Dodge.) When top layer contains a homogeneous color, this effect is equivalent to changing the white point to the inverted color. The perceived contrast increases when there is no clipping.

The Linear Dodge blend mode simply sums the values in the two layers (also known as additive blending. Blending with white gives white. Blending with black does not change the image. When top layer contains a homogeneous color, this effect is equivalent to changing the output black point to this color, and (input) white point to the inverted color. The contrast is decreased when there is no clipping.


Top
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group