premultiplied alpha

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
petitlaf
Posts: 4
Joined: 03 Dec 2008, 19:24

premultiplied alpha

Post by petitlaf »

Hi! Whenever I open a movie file with a premultiplied alpha, the video ends up with a halo in semi-transparent areas. Is there an option in TVP where you can select the color the alpha has been matted with (like you would do in after effects) so that the matte is correctly removed?

Thank you
petitlaf
Posts: 4
Joined: 03 Dec 2008, 19:24

Re: premultiplied alpha

Post by petitlaf »

Since asking my question I realized that as long as the video is premultiplied with a black background, TVP will be able to read it correctly. Still, I would like to know if there is a way in TVP to display correctly videos that have been matted with other colors than black.

Thanks
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: premultiplied alpha

Post by Peter Wassink »

bottom left in the layerpanel you have anoption to set the BG color.
'none' results in the alpha black you mention.
but if you choose 'color' you can set it to be any color of choice by just clicking in the first square behind it and then colorpick (with the now questionmarked pointer) the desired color.
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
petitlaf
Posts: 4
Joined: 03 Dec 2008, 19:24

Re: premultiplied alpha

Post by petitlaf »

Thank you for your answer. After trying setting the background color like you said, it appears that it only changes the displayed background color, but has no impact on how premultiplied footage is interpreted.

Maybe to make my problem clearer, I have keyed footage that was premultiplied with a neutral gray for previewing purposes. In After Effects, to display the footage correctly, I would open the Interpret footage panel and select the correct color next to "Premultiplied: Matted with color".

I want to know how to do the same thing in TVP.

Thank you.
User avatar
malcooning
Posts: 2114
Joined: 29 Mar 2006, 12:43
Location: Tel Aviv
Contact:

Re: premultiplied alpha

Post by malcooning »

petitlaf wrote: Maybe to make my problem clearer, I have keyed footage that was premultiplied with a neutral gray for previewing purposes. In After Effects, to display the footage correctly, I would open the Interpret footage panel and select the correct color next to "Premultiplied: Matted with color".

I want to know how to do the same thing in TVP.
Like you mentioned above, the color for premultiplied mattes in AFX is to allow dealing with footage that has been keyed more poorly. This feature is not available in TVP.

But just to make sure, have you tried importing the footage with different alpha interpretations into TVP (premultimplied/no premultiply)?
matte.jpg
matte.jpg (17.41 KiB) Viewed 19373 times
(you get a preview in the import session window, and as you change the alpha settings the result changes in the preview window)
petitlaf
Posts: 4
Joined: 03 Dec 2008, 19:24

Re: premultiplied alpha

Post by petitlaf »

From what I understand, premultiplying has nothing to do with poorly keyed footage. You would normally use a premultiplied alpha, as oppose to a straight alpha, for previewing purposes mostly (and also to save on calculations during compositing in some specific instances).

Since asking my question, I talked to a few people, and my problem was that you should normally not use any other color than black for premultiplying (which is why TVP probably doesn't offer that option), because you would risk loosing color information in the semi-transparent edges (some color values could be clipped).
User avatar
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: premultiplied alpha

Post by Fabrice »

I will ask to Hervé our dev team leader. he may help. :)
Fabrice Debarge
User avatar
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: premultiplied alpha

Post by Fabrice »

Here is our answer :
In TVP Animation 9.0, please use non-premultiplied alpha or premultiplied alpha to the black.

More options may be added in the future versions.
Fabrice Debarge
User avatar
malcooning
Posts: 2114
Joined: 29 Mar 2006, 12:43
Location: Tel Aviv
Contact:

Re: premultiplied alpha

Post by malcooning »

petitlaf wrote:From what I understand, premultiplying has nothing to do with poorly keyed footage. You would normally use a premultiplied alpha, as oppose to a straight alpha, for previewing purposes mostly (and also to save on calculations during compositing in some specific instances).

Since asking my question, I talked to a few people, and my problem was that you should normally not use any other color than black for premultiplying (which is why TVP probably doesn't offer that option), because you would risk loosing color information in the semi-transparent edges (some color values could be clipped).
I didn't say that premultiplying has anything to do with poorly keyed footage. I said that the COLOR feature for premultiplied footage in AFX is there to help with poorly keyed footage, or, as you mentioned yourself, for footage that its alpha has been premultiplied with anything other than black. since AFX is a compositing program it targets problems such as footage of less optimal circumstances. Myself, I find work on TVP always nicer and easier when I have a compositing program teamed up with it. I personally use Digital Fusion. I see the work level in TVP as the Micro, and the compositing software level as the Macro.
User avatar
mox
Posts: 1024
Joined: 13 Feb 2006, 19:24
Contact:

Re: premultiplied alpha

Post by mox »

I already had this problem when exporting set of .tga graphics for programmers and since then, I ALWAYS save in non pre-multiplied alpha... otherwise there are always black outlines.
As far I know, it's not related to TVPaint but to the picture format itself.
Jerome Lorin
Moxica (playground)
(Win11/TVP 11.7.3-64 bits pro)
Post Reply