Glossary
Masking
Obscures portions of the image based on either a color value or an alpha channel stored in the image. This allows textures to have complex shaped boundaries and create complex effects such as holes in a surface.
In this example, an image with an alpha-channel background is placed as a decal on a rectangular surface. Masking for materials works the same.
Original decal image. The gray checkered area represents the image alpha channel.
Masking information can come from three sources in the bitmap:
None
With no masking, the image obscures the underlying material. Masking allows the material to show through the image where the alpha channel or masking color exists. The material assigned to a planar surface in this example has a red base color.
Without masking (left) the image covers the surface, with masking (right), the red material shows through.
Alpha Channel
Uses the image’s alpha channel to define the masked area if one exists.
Original on the left. The gray checkered area represents the image alpha channel. On the right is the image over a water surface.
The alpha channel is a portion of each pixel’s data that is reserved for transparency information. Alpha channels create and store masks that let you isolate and protect parts of an image while you apply color changes, filters, or other effects to the rest of the image. Each pixel in an image is described as channels of data that define the mixture of the red, green, and blue (RGB) colors. The alpha channel is an 8-bit (256-level) grayscale representation of the image that masks the color of the underlying pixel. The value of the alpha mask determines the intensity of the pixel color. If the Alpha channel is 100%, the images pixel will be complete transparent. At other alpha strengths, the image pixels will blend with transparency.
Color
If alpha channel does not exist in an image, a color in the image can be specified as a mask. There is also a sensitivity number to make the mask more or less sensitive to a single specific color as a masked color. Selecting the Color option will activate the Color Dropper, Color Selector, and Sensitivity controls.
Color Dropper
Click to select the mask color from the bitmap. Click on the Color Dropper, then on the bitmap to pick the color. This control is only available when the Color option is selected.
Color
Use the Color Selector to set the main color. See the Color Selector topic for details.
Sensitivity
The value indicates the size of the area around the color that is also masked. Must be greater than 0.0 for color masking to occur. This control is only available when the Color option is selected.
Blur
Partially masks pixels. The value determines the magnitude of partial masking around the masked color. This control is only available when the Color option is selected.
Reverse
Inverts the mask. Pixels that would have been masked are now included, and pixels once included are now masked.
Transparent
Makes the masked area of the underlying object transparent so other objects or the background behind the object can be seen through the object. Normally, the material of the object shows through in that area.
Transparent masking allows a more natural shadow and lets the background objects to show. The underlying material could simply be transparent, but sometimes it is useful to make the surface behind the decal transparent while keeping other areas of the surface opaque.
Show masked colors
Graphically displays the effects of masking as the parameters change. Use the Color Selector provided to select the display color of the masked pixels. Changing this color or the setting of the checkbox does not change the masked color. This is simply a graphical tool for editing the mask.