why is the smoke "transparent" when we use an add node

Hello.

I cant figure out why, using a jpeg image with no transparency we can see through the smoke when we add the image to the scene with an add node... i thought it would superpose and we couldnt see the cofee cup anymore...

thanks in advance for any answers.

  • Kent Trammell replied

    The "add" operation is a mathematical way of combining images together. Think of each pixel in the image as a number value (black and white for the sake of explanation):

    • A pixel on image 1 (bottom image) is grey, so a value of 0.5.
    • The corresponding pixel on image 2 (top image) is a darker grey, a value of 0.25.
    • When you ADD them together you get a lighter grey value of 0.75
    So even when you use a JPEG with no alpha info, any pixel value below 1 (white) will appear as some level of transparent when using the Add operation.
  • Kent Trammell replied

    I should add that while a value of 1 (white) is opaque, the closer the value gets to 0 (black) the more transparent its effect on the image(s) below. Black would have no effect on the image(s) below.

  • Kent Trammell replied

    Lol one more thing. The "Add" operation is often used to push pixel values above 1 for a brightening effect. So adding a 0.75 grey pixel value to a 0.5 pixel value takes you above 1: to 1.25. Commonly, your computer's display has to normalize that value back to a 0-1 range and the result is an over-exposure effect.

    Think a bout a lightsaber: The middle of the beam is white representing an above-1 overexposure. But as the beam fades outward it gradually becomes a color (like red for the bad guys). The fade into color represents pixel values that are gradually dropping below one and capable of showing color.

  • Lendormy Simon(darkslime) replied

    Right thanks for your detailled explanations, it perfectly cleared the spot.