Results 1 to 10 of 53

Thread: [Award Winner] Explanation of Layer Masks in GIMP(and PS)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Community Leader jfrazierjr's Avatar
    Join Date
    Oct 2007
    Location
    Apex, NC USA
    Posts
    3,057

    Info [Award Winner] Explanation of Layer Masks in GIMP(and PS)

    There have been a few people who have stated that they don't really know or understand layer masks and thus never use them. I have to say, layer masks are an incredible technique to add to your mapping arsenal.

    I hope with this short tutorial to provide at least one person with a new respect for layer masks. If you get something useful from this tutorial, please remember to rate the thread. Likewise, if anyone has any additional tips or tricks I did not include, please feel free to include them in this thread for others to learn from.

    Now, on with the tutorial.

    The first question is "what is a layer mask": Layer masks are adjustments which are attached to a layer that affect the visibility or the layer.

    Second question is: "why would I use a layer mask": To maintain flexibility!

    Third question is "how do layer masks work": A layer mask is a gray scale image in which white indicates 0% opacity and black indicates 100% opacity. Any shade of gray in between black and white is the amount of the image that will show though.

    So, let's start with a few exercises. First, we will begin with the typical background image and use a layer mask to show a section of a different color.
    10-11-2008 9-31-01 PM.png (yea, not to terribly exciting).

    The typical way someone who does not use masks would do this would be to make a selection with the circle section tool and fill with the secondary color. Now, this works, but, if you need to edit either color, you have a lot of extra work to do and unneeded extra work is bad.

    So, what about using layers:

    10-11-2008 9-36-44 PM.png

    This is better as you have made a second layer transparent and then used the circle selection tool and filled the selection with the second color. This gets the job done and maintains more flexibility than the previous technique, so is much better. But, since this is a tutorial about layer masks, we will be going further AND providing ourselves with more flexibility if we need to change the second color in the future.

    So, with the base layer, add a new layer. Now create your selection. In order to create our layer mask, we will first save your selection to a channel.
    10-11-2008 9-44-48 PM.png

    A channel is a special type of layer which is in grayscale that can be used to create a layer mask. Creating channels is a way to apply the exact same layer mask to multiple layers quickly. Once you have created the channel remove the selection, fill the new layer entirely with your secondary color. Now, in order to get our image to look like the original reference, we will add the layer mask by right clicking the top layer and selecting add layer mask from the menu.
    10-11-2008 9-58-10 PM.png


    From the popup window, select the Channel radio button and select the channel you just created.
    10-11-2008 9-59-51 PM.png

    So why are we going to all this work? Because now, we can change either color simply by selecting the layer and using the paint bucket tool. Likewise, you could fill with a texture also. With the first technique(direct painting) you have TONS of work to do a simple color change. With the second technique(two layers) you would have to select the painted image on the second (top) layer and then fill with the new color. Not hard by any means, but not as flexible as if using masks, which you will see shortly.

    I have reached the posting limit of 5 images, so I will briefly explain why using masks is better, before I explain how in the next post. Imagine using the above two layers but with some type of irregular selection, AND in addition to wanting to change the color, you want to expand or contract the size. Not hard if you want to maintain the exact same shape/diminsions, but what if you want to change the shape. Then you have some annoying tedious work to do. This is where layer masks will save the day, as we will see in the next post.
    Last edited by jfrazierjr; 10-12-2008 at 02:25 AM.
    My Finished Maps
    Works in Progress(or abandoned tests)
    My Tutorials:
    Explanation of Layer Masks in GIMP
    How to create ISO Mountains in GIMP/PS using the Smudge tool
    ----------------------------------------------------------
    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •