Microsoft Knowledge Base |
|
INFO: Assigning an Alpha Channel |
|
|
Last reviewed: July 30, 1997
Article ID: Q171756 |
|
The information in this article applies to:
SUMMARYThis article is provided to show you how to determine if a picture has an alpha channel and what it looks like and how to proceed if you need one.
A Softimage .pic file rendered from Softimage 3D will always have an alpha channel. A picture that was converted from another format (for example, YUV) sometimes will not have an alpha channel.
How to Determine If There Is An Alpha ChannelUse one of the following two methods to determine if your picture has an alpha channel:
Assigning an Alpha ChannelIf you have a picture file that does not have an alpha channel, the following two examples shows you how to assign one: If you only want a two-tone alpha channel, you can use the "alpha" standalone. One value will be black, the other will have the intensity you specify. For example, if you want the alpha channel to be black and white do the following:
alpha input output 1 0 .5 0 .5 0 .5 Any pixel that has red, green, or blue intensity between 0 and .5 will have an alpha value of 0, otherwise it will have an alpha value of 1. alpha input output .9 0 .3 0 .4 0 .5 With this example, any pixel that has a red intensity between 0 and .3, or a green intensity between 0 and .4, or a blue intensity between 0 and .5, will have an alpha value of 0, otherwise it will have an alpha value of .9.If you want the alpha channel to be a gray-scale image, you can use the "gray_scale" standalone in combination with "soft2raw", "raw2soft" and "infopic". For example, if your original image is named clouds.pic do the following:
REFERENCESIf you have any questions concerning the information contained in this article, contact support@softimage.com by e-mail.
|
|
Additional query words: 3.51 3.7 si si3d si3ds-a
©1997 Microsoft Corporation. All rights reserved. Legal Notices. |