It is currently Mon Jul 22, 2024 4:35 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: An Explanation of GIMP's Layer Modes
PostPosted: Tue Dec 17, 2013 5:11 pm  (#21) 
Offline
GimpChat Member
User avatar

Joined: Nov 06, 2012
Posts: 78
Location: Texas
Season's Greetings and Happy Holidays to everyone!

_________________
Studio Dalio Digital Art and Photography


Top
 Post subject: Re: An Explanation of GIMP's Layer Modes
PostPosted: Wed Dec 18, 2013 4:41 am  (#22) 
Offline
Script Coder

Joined: Apr 10, 2011
Posts: 532
Grain merge and Grain extract are my favorite layer modes. They're versatile and useful for many purposes - they're powerful, yet simple. They can be used for texturing, lighting, shading, beveling, embossing... many things.

Grain merge can basically be understood as converting the top layer's pixel values (0..255) into signed integers (-128..127), then adding them to the pixel values of the stack. Grain extract is the opposite of that: it converts the top layer to a signed int, but then substracts it from the top of the stack.

Basically, on grain merge, any value above medium (>128) makes the result lighter, while any value below medium (<128) makes the result darker. This is why it works so well for bevels and embosses: since grain merge/extract uses addition/substraction, the lightness of the base layer gets adjusted linearily, making it the most easily predictable, which makes it easy to figure out the correct values for your bevel/emboss/texture etc.

They also work per colour channel, so you can use grain merge also for linear colour adjustments. For example, making red 138, green 128 and blue 118 would modify the base layer so that red gets +10, green is unchanged and blue gets -10. There are loads and loads of effects and adjustments that you can make with only grain merge/extract and some math.

The downside is, that the effect may not be entirely "natural" looking for all applications, especially if you want to create realistic lighting schemes. For such applications, it's better to use soft light / hard light, or some combination of multiply/addition/screen.


Top
 Post subject: Re: An Explanation of GIMP's Layer Modes
PostPosted: Wed Dec 18, 2013 10:35 am  (#23) 
Offline
GimpChat Member
User avatar

Joined: Nov 06, 2012
Posts: 78
Location: Texas
dd wrote:
Grain merge and Grain extract are my favorite layer modes. They're versatile and useful for many purposes - they're powerful, yet simple. They can be used for texturing, lighting, shading, beveling, embossing... many things.

Grain merge can basically be understood as converting the top layer's pixel values (0..255) into signed integers (-128..127), then adding them to the pixel values of the stack. Grain extract is the opposite of that: it converts the top layer to a signed int, but then substracts it from the top of the stack.

Basically, on grain merge, any value above medium (>128) makes the result lighter, while any value below medium (<128) makes the result darker. This is why it works so well for bevels and embosses: since grain merge/extract uses addition/substraction, the lightness of the base layer gets adjusted linearily, making it the most easily predictable, which makes it easy to figure out the correct values for your bevel/emboss/texture etc.

They also work per colour channel, so you can use grain merge also for linear colour adjustments. For example, making red 138, green 128 and blue 118 would modify the base layer so that red gets +10, green is unchanged and blue gets -10. There are loads and loads of effects and adjustments that you can make with only grain merge/extract and some math.

The downside is, that the effect may not be entirely "natural" looking for all applications, especially if you want to create realistic lighting schemes. For such applications, it's better to use soft light / hard light, or some combination of multiply/addition/screen.


Wow! Thanks for that explanation. Do you mind if I include a rough quote of that in my article?

_________________
Studio Dalio Digital Art and Photography


Top
 Post subject: Re: An Explanation of GIMP's Layer Modes
PostPosted: Wed Dec 18, 2013 3:57 pm  (#24) 
Offline
Script Coder

Joined: Apr 10, 2011
Posts: 532
Sure, go ahead.


Top
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Shortcuts to 2.10 documentation re: Layer & Layer-group modes

0

No new posts Attachment(s) Playing With Layer Modes

3

No new posts Attachment(s) Experimenting with layer modes

6

No new posts Using two images and Layer Modes

1

No new posts Attachment(s) New layer modes in LayerFX-2.10 for testing.

9



* Login  



Powered by phpBB3 © phpBB Group