alpha channels » Relationships » Our Forum
Our Forum

Our Forum



ПоискПоиск   Users   Registration   Entrance
Today: 08.06.2025 - 00:43:39
Pages:  1  

alpha channels

Advertising


MessageAuthor

I meant the other way around, and Mask instead of Maskclip: clip3=Layer(clip, clip2, "add", 256) # clip2 is a black clip made with blankclip Maskclip(clip4, clip3) # clip4 gets the alpha channel of clip I guess it gives the same problem ?

---------------------
Mike Rieger SCR Performance 970-214-9702 - Mobile

bavarienmotor

users




Statistics:
Messages: 331
Registration: 07.26.2003
12.06.20 - 09:47:26
Message # 1
RE: alpha channels

Wilbert, My understanding is that Mask(clip,clip1) applies a greyscale version of the visible channels of clip1 as a mask to clip, ignoring the alpha channel of clip1. In your revised layer example, the output is always just the original clip isn't it, as all it does is add zero value pixels? It seems as if basing a BlankClip on a clip with an alpha channel does not make the BlankClip inherit the alpha channel. It is curious also that the Levels function should affect the alpha channel. I guess I am just too used to the way channels wotk in Photoshop, and expect AVISynth to work in roughly the same way.

---------------------

ja///Mnn

users




Statistics:
Messages: 302
Registration: 05.26.2003
12.06.20 - 09:53:29
Message # 2
RE: alpha channels

Yes, I am discovering this. My original idea works if crudely, but whiting out the clip is problematic too. Using high values for RGBAdjust only works if none of the pixel values have a channel zero value. I tried layering on a white BlankClip, but for some reason this seems to be messing up the alpha channel of the original clip. In the same way that one can mess around with audio channels and the YUV channels of YV12 clips, it would be nice if one could manipulate R, G, B, and a channels.

---------------------

VandyS4

users




Statistics:
Messages: 649
Registration: 12.20.2003
12.06.20 - 10:01:37
Message # 3
RE: alpha channels

More strangeness. Try this. vid00=ColorBars(352,288).ConvertToRGB32.ResetMask vid01=BlankClip(vid00,color=$FFFFFF).ResetMask Layer(vid00,vid01,"lighten",level=255,threshold=0) One would have thought that the output should be all white, but instead you get a mosaic of cyan!

---------------------
<- wifey

Reno

users




Statistics:
Messages: 29
Registration: 11.02.2002
12.06.20 - 10:05:58
Message # 4
RE: alpha channels

lighten and darken seem to be ok only for YUY2. As the whole layer thing is written in assembler, I can't check anything :(

---------------------

flea7

users




Statistics:
Messages: 173
Registration: 08.11.2002
12.06.20 - 10:16:00
Message # 5
RE: alpha channels
Projects wont play : Previous topicNext topic: Sony Acid Plugins "Demo" ?
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants