Jump to: Board index » General » Fusion

Why does color effect alpha?

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline

EthicalEgret

  • Posts: 23
  • Joined: Mon May 29, 2023 10:34 pm
  • Real Name: Robert Christian

Why does color effect alpha?

PostSat Mar 02, 2024 9:57 am

Why does the color of my background change its effective alpha? If I set the color to pure white, alpha does nothing. Why?
wtf.png
wtf.png (376.3 KiB) Viewed 535 times
Offline
User avatar

Bryan Ray

  • Posts: 2485
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: Why does color effect alpha?

PostSat Mar 02, 2024 6:04 pm

Alpha 0 doesn't make RGB invisible unless you multiply by the alpha channel. If it did, you couldn't have things like glows and flares, which are 100% transmissive but still have color.

Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline
User avatar

Olivier MATHIEU

  • Posts: 919
  • Joined: Thu Aug 04, 2016 1:55 pm
  • Location: Paris/Grenoble, FRANCE

Re: Why does color effect alpha?

PostMon Mar 04, 2024 8:01 am

Fusion Viewers try to show you pixel with positive RGB value and near zero Alpha.... for explicite reasons given previously by Brian.
It seem natural coming from "other" software, but it's very convenient
Last edited by Olivier MATHIEU on Mon Mar 04, 2024 9:33 am, edited 1 time in total.
Resolve Studio 18.6.x & Fusion Studio 18.6.x | MacOS 13.6.x | GUI : 3840 x 2160 | Ntw : 10Gb/s
MacbookPro M2 Max
Offline

KrunoSmithy

  • Posts: 78
  • Joined: Fri Oct 20, 2023 11:01 pm
  • Real Name: Kruno Stifter

Re: Why does color effect alpha?

PostMon Mar 04, 2024 8:54 am

Bryan Ray wrote:Alpha 0 doesn't make RGB invisible unless you multiply by the alpha channel. If it did, you couldn't have things like glows and flares, which are 100% transmissive but still have color.



This. Yes.

From the Fusion manual:

Most nodes that require you to explicitly deal with the state of premultiplication of an RGBA image have a “Pre-Divide, Post-Multiply” checkbox. This includes simple color correction nodes such as Brightness Contrast and Color Curves, as well as the Color Correct node, which has the “Pre-Divide/ Post-Multiply ” checkbox in the Options panel of its Inspector settings.

This checkbox allows you to connect an RGBA premultiplied image to the node and perform a color correction operation. It takes the RGBA image input, performs a divide operation to remove the semi- transparency and then performs a multiplication operation before outputting the color corrected image. This way, the color correction is done using a nonpremultiplied image but the resulting output is a Merge-friendly premultiplied image.

Selecting the Pre-Divide/Post-Multiply checkbox will cause the image’s pixel values to be divided by the alpha values prior to this conversion, and then re-multiplied by the alpha value after this conversion. This helps to avoid the creation of illegally additive images, particularly around the edges of a blue/green key or when working with 3D rendered objects.

Controlling Premultiplication With Alpha Divide and Alpha Multiply

The Alpha Divide and Alpha Multiply nodes, found in the Matte category of the Effects Library, are available when multiple operations in a row expect a “straight” alpha channel. Instead of performing repetitive Pre-Divide/Post Multiply operations on each node, you can use these two nodes to book- end the other nodes. Simply add the Alpha Divide node when you want the RGBA image data not to be premultiplied, and add the Alpha Multiply node when you want the image data to be premultiplied again. For example, if you’re using third-party OFX nodes that make color adjustments, you may need to control premultiplication before and after such an adjustment manually.

.........................

Transparency and Color - Alpha Multiplication in ResolveFusion

Return to Fusion

Who is online

Users browsing this forum: No registered users and 24 guests