| Squid Image: | Kevin Weller Image may not be re-published in any venue without written permission from Kevin Weller |
| Tutorial: | Walt Richmond |
| Version: | rev E |
| Designed for 800- to 1000-pixel wide browser displays | |
OverviewThe objective of this tutorial is to demonstrate the concept of "screening" in WinImages FX.Screening is the technique of lifting an object off of a uniformly colored backdrop by essentially treating the color of that backdrop as transparency. This is an approach that has three main implications:
This approach differs a from color-sensitive regional selection approaches (in other words, selections that use a "magic wand") in that it is not sufficient to separate the subject from the image backdrop by outlining it, and additionally, in that quite often, a correct result will not be simply a matter of opaque regions and transparent regions but will also contain partially transparent regions. It is these differences that dictate the choice of screening with color-keying techniques, rather than masking with regional selection tools, to generate the master transparency. This tutorial shows how you go about creating a screen in a situation where a partially transparent subject is present over a relatively uniform backdrop. First we'll explain what to do, then we'll explain what is happening. |
![]() The Original Squid
![]() The Screened and Keyed Squid Recomposited, with soft shadow and recovered transparency
|
Note: Title bar names in this tutorial will not exactly match the names in your work, because in order to create the tutorial, other images were created and saved, and reloaded - just follow the steps and please ignore the names of the images as shown in our screen captures.)
Begin by starting WinImages FX and loading the squid image. This is done using the File menu, Load submenu item. This may look a little unusual to you because of the submenus; these keep a memory of the last few places you've been loading images from. You'll find them very convenient once you've used them a bit, they are more efficient than normal load dialogs for many kinds of work. Navigate to the file system location where the squid image is saved, and load it.
Once the image is loaded, use the left mouse button and click once on the Windows symbol at the upper left corner of the image, just to the left of the word "View" in the image title bar. This will drop the image's context menu.
Select the Layers command as shown below:

You will probably (depending on your preferences settings) be asked if you want to convert this image to a layered image. Answer OK.
Once the layers dialog opens, click once on the squid image in the list so that it is selected, and press the Duplicate command button in the set of buttons at the left. Now you'll have two layers named the same. Left-click on the layer at the top (L1) and then press the
At this point, the dialog should look almost the same as the image below, with the exception of the name of layer two (L2) which will have your image name in it, which is fine.

At this point, left-click Done command button in the Layers dialog, and it will close.
Now select the Polygon area tool as shown below from the area toolbox:

Now we need to select the

We're ready to do the most involved part now. At this point, you have three images on-screen. One is the Master image (the composite result of the layered image), one is layer two, and one is layer one. Bring the Layer one image to the front (easily identified because the title bar will have the name "Key" and
Now, once the image is stretched to the largest area you have available, what you want to do is create a polygonal selection around the squid; this selection should be close to the squid (see the example selection below) but it is very important that you leave a little bit of the sandy color between the selection and the squid. This, in turn, means that the selection doesn't have to be that precise (again, as you can see in the example below) - just get as close as is easily done, and leave at least a couple of pixels of sand color between the selection and the squid. Precision is not the issue here, leaving a little sand is. Creating the selection should take just a few seconds.
Tip: Polygonal selections are made by left clicking each vertice along the polygon down, and then for the final, closing point, right clicking to close the last segment.

When you finish this selection, the squid will disappear from the image, as shown below:

Now, select the context menu for any of the layers or the master image, and select the Layers command again. The layers dialog will open. Click on Layer 1 and then drop the Mode list, and select
Next, set the Factor control to 222 (you can adjust this to taste, but 222 seems to work well.) The result of these actions is shown below:

Finally, click the Done command button, which will close the Layers dialog.
At this point, the Master image should look similar to the image above. You do need to keep in mind that this example was made with a low-resolution image that was originally posted to a web site; if the image you are attempting to key using this approach is higher resolution, you should get slightly different results, usually superior because you can get closer to the subject matter and still retain a border of the backdrop color.
We want to convert the master image into a flat, atomic image now (because you can't edit a master image, only the layers that make it up.) To do this, select the

You probably want to save the layered image at this point in the layered format in case you want to work further with it later. Use a submenu off of "File",
It is important to recognize that this keying technique identifies and creates a key region that is the general color gradient of the sand (using the
Generally, this is great; for instance, it means where the sand is visible through the wings, the wings will become transparent to a degree proportional to the degree the sand was showing though, and that in turn means that in later compositing, the image will be similarly transparent.
A little bit of very easy touch-up is now required, though, because some areas of the squid are colored similarly to the sand, yet it is obvious that these are actually colors in the squid. One such area is the eye; there are others on the back.
To touch up the transparency, select Alpha from the bottom potion of the toolbar, then left-click on the

Select the ellipse tool from the area toolbox:

Pull out an ellipse as shown below to encompass the eye region. This will place 255 (opaque) alpha into the image.


Finally, save this image using a 32-bit save mode. We suggest Targa-32. This is highly compatible with other graphics applications, and you can continue working with the image in Photoshop, Paint Shop Pro, WinImages or any other application by saving in this common format.


This layer mode develops opacity for the subject matter region by comparing the color in the higher layer, which is the layer that has the keying mode selected and represents the background, to the layer(s) beneath. Where the colors match exactly, the layer mode develops 0% opacity (100% transparency.) Where the colors do not match exactly, but are close, slight opacity develops, and where the colors are quite different, opacity is strong. The
Setting Factor to 222 provides a bit more than double the usual keying effort; opacity develops a bit more than twice as quickly because of this setting.
Another important part of the process is the
On the other hand, when you have a high quality backdrop (see screening tips) - for instance, when you are actually compositing in front of a professional blue- or green-screen - you can afford to make a more general selection around the subject. This is because with these types of screens, the backdrop is extremely uniform and so the region created by the remove feature operation will be accurate even if it is generated from colors not directly annular to the subject itself. This makes the selection process easier, which in turn makes it faster.
The process relies on the idea that the background behind the object is of relatively uniform color. This is always true in green and blue screening; it is also true of this squid example.
Screening (blue, green or even "sand"...) is the act of putting something in front of a uniform color backdrop so it can be most easily extracted from the backdrop and re-composited... this is very common in film and video work. One of the things that we try to do when we create a screen on purpose (like a film blue-screen) is try to make sure that there is as little of the screen color as possible in the subject to be extracted. Here on the sand, we don't have control of the backdrop color viz-a-viz the color of the subject. And, unfortunately, the squid actually does have some sandy colors on it. This is why we have to do some alpha (transparency) repair before the image is ready to go.
Once the gradient is built, the key has a color related to the sand at every point underneath the squid; so it matches the squid against that gradient, and where the match is close (in the wings, for example), only slight opacity develops. Where the match is not close (the green above the eyes, for example) the result is high opacity, or slight transparency, depending on how you prefer to look at the situation.
Areas in the key image layer outside of the
This keying method can be animated using WinImage's
Walt Richmond
for Black Belt Systems
Some Professional Screening Tips from Walt
|
Keeping the subject far from the blue screen will also reduce the amount of reflected, or "wash", light that reaches them. |