GT Portal . Forums . Official Tutorials . Art Galleries . FAQs . Search . New Posts . Contact Us Login  .  Register


GimpTalk Announcement :
Try your digital-art skills against your fellow gimpers in GIMPtalk's Biweekly Art competition !


Board index » GIMP News and Help forums » GIMP Tutorials and Tips Make Money Online . Free Image Hosting Script . Convert FLV to Cell Phone Format
Featured Tutorial : Learn how to create characters by Griatch
Search for :  


Post new topic Reply to topic   [ 10 posts ]  


Author Message
 Post subject:
PostPosted: Fri Apr 14, 2006 6:59 pm 
Offline
User avatar

Joined:
Mon Aug 22, 2005 8:35 pm

Topics: 80
Posts: 3943

Find User's Topics

WHAT YOU NEED TO KNOW

This tutorial should be fairly easy for the beginning GIMPer, but there are a few things that you are expected to know before starting. Or I should probably say, things you need to pick up on if you don't already know them.

The tutorial covers a lot of territory and it will not be giving detailed instructions describing exact keystrokes or menu commands. The GIMP usually offers several different ways to accomplish most things; how you choose to do it is up to you. For example, the tutorial might have a step that says

[*] Create a [BLACK] layer and set the Mode to [Multiply] and the Opacity to [75].

You can create this layer by using the menus, by right-clicking in the Layers window, or even by hitting backspace in the Image window (I will often just duplicate a layer and then drag the foreground or background color to it in order to set the color). You may use whatever method you choose so long as the above command results in a new BLACK layer set to "Multiply" Mode and with an Opacity of "75".

It is highly recommended that you use the following image as you step through the tutorial. (The XCF file is available here). The end result of this tutorial will not be an astounding image that will impress your friends; it will hopefully instruct you how to use and control layer masks more fully than before.

Image

The above image is the Original layer that we will be working from. The XCF file has a YELLOW Background layer which will help make things more obvious. NOTE: the Original layer is never modified throughout the tutorial.

Other than creating a new layer as previously mentioned, you will need to know how to do the following:

[*] Making a layer "active" and knowing what it means for a layer to be "active". This is done by clicking on the layer in the Layer window. I know it sounds trivial, but I mention it here because I will not be saying it again. I will say something like "duplicate the Original layer" and it is up to you to know that you must "activate" the Original layer and perform a duplication of it.

[*] Adding a layermask to a layer and initializing it to a certain state. In order to do this, the layer must be "active" (see preceding paragraph) and it must have an alpha channel (layers without alpha channels appear in BOLD in the Layers window; you can add an alpha channel with the "Layer->Transparency->Add Alpha Channel"). You add the mask by performing a "Layer->Mask->Add Layer Mask" command and choosing one of the 'Initialize Layer Mask To...' options in the dialog window that appears. You may also specify whether the mask is to be "inverted".

[*] Making a layermask "active" and knowing the difference between editing a layer and editing its layermask. If a layer has a mask attached to it, the mask preview will appear to the right of the layer preview in the Layers window. You will notice a WHITE outline around the "active" preview (this is sometimes hard to notice if the contents of the preview are WHITE also). Experiment a little clicking between the two previews to familiarize yourself with this; it will be important in following the tutorial that you pay attention to whether you should be operating on the layer mask, or the layer itself. Also, the only masks discussed in this tutorial are layer masks; the GIMP has other masks (selection masks, channel masks, etc) but whenever the tutorial says "mask", it means "layer mask".

[*] Perform an "Alpha to selection" on a layer. This can be done by making the layer active and performing a "Layer->Transparency->Alpha to selection" but you will probably find it easier to right-mouse-click on the layer (in the Layers window) and choose "Alpha to selection". IMPORTANT NOTE: the only layer that you will need to do this on in this tutorial is the Original layer (named "Original" in the XCF file). Also, other than performing an "Alpha to selection", the Original layer is never edited in any manner.

[*] "Growing" and "shrinking" a selection. These operations are available on the "Selection" menu.

[*] Perform a "Gaussian blur" on a layer (mask). The Gaussian blur filter is accessed by choosing the menu command "Filters->Blur->Gaussian blur". NOTE: in this tutorial, the Gaussian blur filter is only ever applied to the mask of a new layer.

[*] Change the offsets of a layer (mask). Moving a layer can be performed by using the Move Tool ("Tools->Transform->Move") but in most cases (all cases?) for this tutorial it will be preferable to use the "Layers->Transform->Offset" menu command which allows you to specify small increments (of about 2-6 pixels) in the X and Y directions. NOTE: in this tutorial, all Offset operations are performed on the layer mask of a new layer. Just like when using Gaussian blur, make sure that the mask preview is selected and not the layer itself.

[*] One final note, all values or modes that appear within square brackets can be modified to alter the result. For example, [WHITE] might be specified as a "highlight" color but you are free to use any color you wish (lighter colors make better highlights). I would advise following through using the specified values and then experiment after you are familiar with the steps.

That's all pretty scary sounding, right? Don't give up yet, from here on in it gets easy.

MAKING OUR FIRST MASK

[*] Start by opening example image I mentioned earlier.
[*] Create a [BLACK] layer with "Normal" Mode and Opacity 100%
[*] Perform an "Alpha to selection" on the Original layer.
[*] On the new layer, perform an "Add layer mask" specifying "Selection" for the "Initialize Layer Mask to" option. NOTE: throughout the tutorial, this step will be specified by merely saying "Create a mask from the selection on the new layer".
[*] Perform a "Select->None"

You should see the following image

Image

The mask you have just created we shall call an "outside mask" because everything outside the selection is "masked out"; you can change the new layer in that area and it will not show up in the image. Changes made to the layer inside the selection (the BLACK part of the above image) will affect the image. Experiment a little with this by drawing on the layer (using a WHITE or light-colored pencil), just make sure the layer is active and not the mask.

CREATING AN INSIDE MASK

After you are done experimenting with your "outside mask", you can delete the mask by right-mouse-clicking on the new layer and choosing the "Delete layer mask" command. Alternately, you can perform a "File->Revert" to get back to the original image (if you do this then you have to recreate the new BLACK layer).

[*] Perform an "Alpha to selection" on the Original layer.
[*] On the new layer, perform an "Add layer mask" specifying "Selection" for the "Initialize Layer Mask to" option but this time check the box that says "Invert Selection". NOTE: throughout the tutorial, this step will be described by merely saying "Add a mask to the new layer from the inverted selection".
[*] Perform a "Select->None"

Image

This mask you have just created we will call an "inside mask" because everything inside the selection is "masked out"; you can change the new layer in that area and it will not show up in the image. Changes made to the layer outside the selection (the BLACK portion) will affect the image.

CREATING AN OUTER SHADOW

[*] Revert back to the original image. (Each section from here on will use the original XCF file as a starting point.)

In order to make our objects cast a shadow, we need to use an "inside mask" because the shadow is around the outside of the objects (and we are masking off the inside to preserve them).

[*] Create a [BLACK] layer with ["Multiply"] Mode and Opacity [75%].

You may experiment with different Modes and Opacities but, in general, "Multiply" is the best mode for shadows.

[*] Perform an "Alpha to selection" on the Original layer.
[*] Grow the selection by about [5] pixels.
[*] Add a mask to the new layer from the selection.
[*] Perform a "Select->None"
[*] Move the new layer below the Original layer in the layerstack (to place it behind the objects).

The "shadow" now appears as a [BLACK] border around the objects and looks like

Image

Which isn't too bad, however, shadows don't usually have such well-defined edges so it will look more "shadowy" if we blur them a little.

[*] Perform a Gaussian blur [X radius = Y radius = 7] on the mask.

Image

CREATING AN OUTER GLOW (exercise)

The steps to create an outer glow are precisely the same as those to create an outer shadow except that the newly created layer should use a light color ([WHITE]) and its Mode should be set to [Screen]. See if you can go through the steps on your own and produce the following image.

Image

CREATING A DROP SHADOW

[*] Revert back to the original image.

Shadows do not usually appear perfectly surrounding the object (unless the light shining on the object is directly over it). A "drop shadow" creates a shadow that is offset from the original object; doing this requires just a slight modification of the OUTER SHADOW procedure (the alterred steps are shown in RED).

[*] Create a [BLACK] layer with ["Multiply"] Mode and Opacity [75%].
[*] Perform an "Alpha to selection" on the Original layer.
[*] Perform a "Select->Grow" of [5 pixels]. (This step is optional, perhaps you want the shadow to be the same size?)
[*] Create a mask from the selection on the new layer.
[*] Perform a "Select->None"
[*] "Lower" the new layer below the Original layer in the layerstack (to place it behind the objects).
[*] Move the layer mask slightly by choosing the "Move" tool and holding down the SHIFT key as you click-drag the image (or by using the "Layers->Transform->Offset" command with [X=8] and [Y=4]).
[*] Perform a Gaussian blur [X radius = Y radius = 7] on the mask.

Your image should look like the following.

Image

CREATING AN INNER SHADOW

[*] Revert back to the original image.

An inner shadow is created in a similar way to the outer shadow with the exception that an inverted selection mask is used, the selection is "shrunk" and the new layer remains above the original in the layer stack (the alterred steps are shown in RED).

[*] Create a [BLACK] layer with ["Multiply"] Mode and Opacity [75%].
[*] Perform an "Alpha to selection" on the Original layer.
[*] Shrink the selection by [5] pixels.
[*] Create a mask from the inverted selection on the new layer.
[*] Perform a "Select->None"
[*] Do NOT move the new layer below the Original layer.
[*] Perform a Gaussian blur [X radius = Y radius = 7] on the mask.

At this point, your image should look like this.

Image

That doesn't look very good, the problem is that we want an "inner" shadow and yet there is still some stuff in the image that is "outside" the selection. We need to add an outside mask to hide the "uglyness" on the New Layer and let the layers underneath show through. Each layer can have only one mask so, in order to create a new mask, we need to "free up" the existing mask. This is done by "applying" the mask.

[*] Apply the mask to the new layer. (Perform a "Layers->Transparency->Apply layer mask" or, alternately, use the right-mouse menu in the Layer Window.)

You will notice that nothing changed in the image's appearance, but now the new layer no longer has a mask. We can now continue to add an "outside mask" to hide the "garbage" portion of our inner shadow. (Just a friendly reminder: "inside mask" = "add mask from inverted selection"; "outside mask" = "add mask from (non-inverted) selection")

[*] Perform an "Alpha to selection" on the Original layer.
[*] Create a mask from the selection on the new layer.
[*] Perform a "Select->None"

Your final image should appear like this.

Image

CREATING AN INNER GLOW (exercise)

As one might expect, the steps to create an inner glow are precisely the same as those to create an inner shadow except that the newly created layer should use a light color ([WHITE]) and its Mode should be set to [Screen]. See if you can perform the necessary steps to create the following image.

Image

CREATING A BEVEL SHADOW

[*] Revert back to the original image.

A "bevel shadow" is an inner shadow that only appears on a portion of the object; as if the light being shined on it was not directly over it. It correlates to the "drop shadow" except that it is an offset inner shadow instead of an offset outer shadow.

[*] Create a [BLACK] layer with ["Multiply"] Mode and Opacity [75%].
[*] Perform an "Alpha to selection" on the Original layer.
[*] Shrink or grow the selection by [3] pixels. (This step is optional, see discussion in the CONCLUSION section at the end of this tutorial.)
[*] Create a mask from the inverted selection on the new layer.
[*] Perform a "Select->None"
[*] Move the layer mask slightly by choosing the Move tool and holding down the SHIFT key as you click-drag the image (or by using the "Layers->Transform->Offset" command).
[*] Perform a Gaussian blur [X radius = Y radius = 7] on the mask.

At this point, your image should look like this.

Image

Again, the problem is that we want an "inner" shadow and yet there is still some stuff in the image that is "outside" the selection. We need to add an outside mask to hide it.

[*] Apply the mask to the new layer.
[*] Perform an "Alpha to selection" on the Original layer.
[*] Create a mask from the selection on the new layer.
[*] Perform a "Select->None"

Your final image should appear like this.

Image

CREATING A BEVEL GLOW (exercise)

A "bevel glow" is just like a bevel shadow except that a light color ([WHITE]) is used instead of BLACK and the Mode is set to "Screen". Based on this knowledge, see if you can create the following image.

Image

CONCLUSION (discussion)

Hopefully your brain hasn't exploded from this long tutorial. While it all seems rather complicated. there are actually only a few steps and a couple of variations of each step.

To summarize:
[*] Create a new layer. For shadows, use a dark layer with Multiply Mode. For glows, use a light layer with Screen Mode. You can change the intensity of the shadow or glow with the Opacity setting.
[*] Do an "Alpha to selection" on your Original layer. (You actually can get your selection however you wish, feel free to experiment.)
[*] Add either an "inside mask" or an "outside mask" to the new layer. Inside masks use the inverted selection and protect the selection from being changed, while outside masks use a non-inverted selection and allow only the selection to be changed. Therefore, inside masks are used for outer glows and shadows while outside masks are used to create inner glows and shadows.
[*] Offsetting the layer mask changes the apparent direction of the light source.


Finally, whether you shrink or grow your selection (or neither) determines the "depth" of your object. In the case of outer shadows and outer glows, the size of the selection versus the size of the object determines the perception of how close the light appears to the object relative to how close the object is to the background. There is really no way to screw up how much depth exists for the outer glows and shadows. The worst that happens is that your shadow or glow does not seem "connected" to the object.

For inner (bevel) shadows and inner (bevel) glows, the "depth" also provides the illusion of the shape of the object (as well as the distance from the light source). Compare the following images.

Image

EXTRA CREDIT (exercise)

See if you can combine the bevel glow and bevel shadow operations to create the following image.

Image

EXTRA EXTRA CREDIT (exercise)

"Embossing" combines the four operations of bevel shadow, bevel glow, drop shadow, and outer glow. See if you can make it through the necessary steps to create an "embossed" image.

Image


_________________
this is bizarre ... it's crazy ... it's stupid ... how can this ... oh my God! It's brilliant!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 14, 2006 8:03 pm 
Offline
User avatar

Joined:
Tue Mar 01, 2005 4:40 pm

Topics: 127
Posts: 2264

Find User's Topics
Very nicely done! This will be helpful to a lot of folks.

Can you tell me how to fix my render? (I just wanted to sound like a noob! :w:)

Thanks for posting this.

Art


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 14, 2006 8:14 pm 
Offline

Joined:
Sat Apr 08, 2006 10:37 pm

Topics: 1
Posts: 10

Find User's Topics
Haa coool Thats neat thanks

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 15, 2006 10:35 pm 
Offline
User avatar

Joined:
Tue Dec 27, 2005 2:27 am

Topics: 12
Posts: 92

Find User's Topics
Thanks for the tut! It's very well written and put together. The only problem I had was where we were able to choose from shrink or grow to create an inside shadow. You didn't specify what you used, therefore my image was not the same as yours. Perhaps go back and specify what you used?

Other then that, great tut! I've used GIMP for about 2 weeks and needed some help with lighting, and this help alot. I can't wait to apply it to my next render.

Thanks again!

-Roken

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 1:53 am 
Offline
User avatar

Joined:
Wed Oct 26, 2005 9:21 am

Topics: 67
Posts: 1708

Find User's Topics
Nice
Now all we need is a cross reference for PS layer effects.

_________________
Image Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 02, 2007 3:56 am 
Offline
User avatar

Joined:
Wed Apr 04, 2007 11:32 am

Topics: 38
Posts: 72

Find User's Topics
Quote:
Add a mask to the new layer from the selection.

What do you mean by this, or how do I do it?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 02, 2007 4:20 am 
Offline

Joined:
Tue May 29, 2007 3:04 pm

Topics: 6
Posts: 27

Find User's Topics
Wow!

Thanks for the tutorial.

_________________
Sell your writings here
Make money online


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 02, 2007 12:26 pm 
Offline
User avatar

Joined:
Sat Aug 13, 2005 11:25 am

Topics: 365
Posts: 4745

Find User's Topics
Quote:
What do you mean by this, or how do I do it?


If you have a selection and right click on a layer (any layer, since selections aren't tied to a specific layer), a menu comes up, one of the entries is "add layer mask". When you do that...a dialog comes up and one of the entries is "from layer mask". Click that, and the layer gets a mask in the shape of the selection.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 02, 2007 1:13 pm 
Offline
User avatar

Joined:
Wed Apr 04, 2007 11:32 am

Topics: 38
Posts: 72

Find User's Topics
Ohh, ok thanks ClayOgre. I knew the mask thing. What i didn't know was which one to use, white, black ect.


Top
 Profile  
 
 Post subject: Re: Shadows and Glows (3-D effects)
PostPosted: Thu Aug 28, 2008 12:21 pm 
Offline

Joined:
Thu Aug 28, 2008 12:11 pm

Topics: 0
Posts: 1

Find User's Topics
Sir, this is just the perfect tutorial to understand how layers and masks works.

Since there's no inner shadows and inner glow automatic features as in Photoshop, i really needed a post like this.

Thank you sir !

P.S: i'm french so don't call the grammar police :)


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  

Post new topic Reply to topic
 [ 10 posts ] 



Who is online

Users browsing this forum: Kesgar and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Related Website
Gimp tutorials database
All rights reserved © GimpTalk 2008
forum software by
phpBB