use inverse of the red channel as alpha HELLLLP!!!

Home Page forums fx Art and Technique Compositing, Roto, Keying use inverse of the red channel as alpha HELLLLP!!!

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #204963
    Anonymous
    Guest

    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

    #219947
    Anonymous
    Inactive

    I 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.

    #219948
    Anonymous
    Inactive

    Im 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

    #219946
    Kane Borchert
    Participant

    It 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.
    Cheers

    #219949
    Anonymous
    Inactive

    Sounds 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. invert

    Let me know if you have any questions.
    -joe

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Copy link
Powered by Social Snap