How to use the Alpha Mask / Alpha Channel

The Twilight Render Team shares tips, ideas, helpful hints, and more on using Twilight Render
Post Reply
Fletch
Posts: 10373
Joined: Fri Mar 20, 2009 2:41 pm
OS: PC 64bit
SketchUp: 7-2018
Contact:

How to use the Alpha Mask / Alpha Channel

Post by Fletch » Thu Jan 24, 2019 12:17 pm

If you want to put in a different sky background, or want to place only a single selected item you have rendered into another image, you need to render an Alpha Mask.

Render the Alpha Mask at twice the resolution you will need in your final image and resize the mask in your image editing program. This increases the quality of your alpha mask image.
Then place that Alpha Mask rendering onto the Alpha Channel for your rendered image's layer.


Image

In GIMP this video tutorial explains how to copy and paste your black and white image into the alpha mask channel for your rendered image layer (these are the steps for GIMP as shown in the video tutorial linked here):
  1. open Alpha Mask Rendering (it's a greyscale image, basically almost completely black and white)
    resize the Alpha Mask Render (which you rendered at 2x the scale of the original rendered image) and resize it to be exact same size as original rendering. (Use the "resize image" function to do this - not the "free transform" or "scale" function.)
  2. Ctrl+C to copy the entire newly re-sized Alpha Mask Render
  3. Now you right-click your rendered image layer and choose "Add Alpha Channel". (choose either white or transparent alpha channel, it doesn't matter)
  4. Then select the rendering's new alpha channel icon now showing on your layers pallette next to the thumbnail of the rendering, and paste the Alpha Mask Render into the Alpha Channel for the rendered image using Ctrl+V
  5. GIMP will create a new layer with the pasted info, right-click that new layer and click the anchor icon, which will force that info to be pasted into the alpha mask channel.
  6. In GIMP or in Photoshop if the alpha mask on your layer is being edited it will have a highlight line around the little mask thumbnail icon
  7. add new layer BELOW your rendering containing the new sky you want to use
NOTE: If you are in Photoshop, and you create a mask on your rendered image layer, you can hold ALT key down and click the mask icon on the layer to open up that alpha channel for editing, then paste in your mask there. Click on the image icon thumbnail for the same layer to get out of alpha channel editing mode.

JGA
Posts: 183
Joined: Fri Aug 28, 2009 12:13 pm
OS: win7 pro 64 bit
SketchUp: 2015 pro

Re: How to use the Alpha Mask / Alpha Channel

Post by JGA » Tue Jan 29, 2019 1:35 pm

:gj:
JGA

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest