Home Page › forums › fx Art and Technique › Compositing, Roto, Keying › use inverse of the red channel as alpha HELLLLP!!!
- This topic has 4 replies, 5 voices, and was last updated 8 years, 5 months ago by Anonymous.
-
AuthorPosts
-
April 27, 2012 at 1:20 am #204963AnonymousGuest
hi all!,
this sounds really simple, but i cant get it to work without there being a white rim around my character.
basically i need to use the inverse of the red channel as the alpha channel of my image. So i have used a shuffle node to make the red channel the alpha, then and invert node, then piped the result into the mask channel of a merge node (with the input being my original image.
However the invert node causes the black space outside my image to become white. and then the very edge of the red channel mask then leaves a sliver of white rim (from the inverted alpha) in my resulting mask. Does anyone have a way of not getting the white rim??
thanks, Sam
April 28, 2012 at 7:45 am #219947AnonymousInactiveI am confused by your description. Could you post some screenshots of your node tree and explain more clearly?
Is the Merge node you mention merging your A and B inputs together, and then you are trying to mask that merge using the inverted alpha you created? Can you explain this more clearly?
I’m not sure whether the source of this white rim you mention is from your elements being composited incorrectly, or from something else. It would be hard to tell without a screenshot or a more complete description.
May 16, 2012 at 10:42 am #219948AnonymousInactiveIm just wondering; is your source material 8 bit? or higher? you may have values in your red channel that go above 1, so your alpha will be going above 1 or below 0 too… this could be causing the rim you are talking about, but as jedypod has said; it would be useful to see the tree and the effect.
for now though just mouse over your alpha and see if the values are going above 1 or below 0.
RB
May 20, 2012 at 11:57 pm #219946Kane BorchertParticipantIt would help seeing a screen shot, and I’m assuming this is Nuke from the nodes you have listed…unless I have missed something. Make sure you are premult (ing) your alphas right and no other alpha channels are being passed into the the alpha stream.
I would need a screenshot to understand this further.
Hope it works out.
CheersMay 31, 2012 at 1:17 am #219949AnonymousInactiveSounds like you need to unpremultiply the alpha mask by the object matte before you invert it. This is a common mistake in compositing. In nuke, here’s a solution that takes 4 nodes:
1. shuffle the alpha of your object into your matte
2. unpremult
3. shuffle the alpha to the red channel
4. invertLet me know if you have any questions.
-joe -
AuthorPosts
- You must be logged in to reply to this topic.
