Creating Varied Transparency Mask Topic is solved

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
pixelpusher
Posts: 19
Joined: 05 Nov 2013, 17:06

Creating Varied Transparency Mask

Post by pixelpusher »

Hello all.
I am interested in figuring out how to take a grey scale image, and make it a mask maintaining the various levels of grey as various levels of transparency.
So black would be o% transparent and white would be 100% transparent.
I can't figure out a good approach to this.
The various key tools allow for filtering a range to a fully opaque mask, not what I want.
I want a variable matte, maintaining the variety of density driven by the greys.
Any direction appreciated.
Stay safe and well!
Casey
User avatar
slowtiger
Posts: 2950
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: Creating Varied Transparency Mask

Post by slowtiger »

The Scan cleaner would transfer a bw image into these transparencies, but TVP can't use this as a mask on a different layer the same way as it peserves alpha on the same layer.
TVP 10.0.18 and 11.0 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
TVP 11.0 and 11.7 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
TVP 11.7 Mac Mini M2pro 32GB OS 13.5
User avatar
ematecki
Site Admin
Posts: 2259
Joined: 15 Feb 2006, 14:32

Re: Creating Varied Transparency Mask

Post by ematecki »

Yes it can :)

You have to activate "Stencil" on the gray-level layer, and then it will only draw (in any layer) where there is already opacity in this layer.

Untitled.png
Untitled.png (18.72 KiB) Viewed 13980 times
Quicktime is DEAD. Get over it and move on !
User avatar
Hironori Takagi
Posts: 314
Joined: 14 May 2018, 10:15
Location: Tokyo, Japan
Contact:

Re: Creating Varied Transparency Mask

Post by Hironori Takagi »

I'm interested in this issue and created a custom panel that behaves the same as the After Effects plugin "Unmult".
WhiteOnOff(e)_200730.png
Is your goal different from this?
Attachments
WhiteOnOff_190607.tvpx
(171.5 KiB) Downloaded 938 times
TVPaint 11.7.2(Nov 14 2023), Windows11 Pro, HP Spectre x360 Convertible 14-ea0xxx / TVPaint 11.7.1(Dec 22 2022) Mac OS 11.6, Apple MacBookPro M1 2020
pixelpusher
Posts: 19
Joined: 05 Nov 2013, 17:06

Re: Creating Varied Transparency Mask

Post by pixelpusher »

Yes, my goal is different.
I am interested in maintaining the full 256 steps of potential variation in transparency of a mask, (or alpha whichever you prefer) driven by the grey scale of the source image(s).
So were it a full color image, first step is a black and white conversion. No problem. Then a conversion to a variable density mask/alpha image based on the grey scale. 0% black = 100% transparent, 25% black = 75% transparent 50% black = 50% transparent 75% black = 25% transparent 100% black = 0% transparent, and every step in between these as well. Equivalent to a gradient mask/alpha driven by the image.
Thanks for the interest and feedback on this.
Scan Cleaner does not do this in my estimation. It is more like the color keying tools and isolates a range that then is the mask/alpha.
User avatar
ematecki
Site Admin
Posts: 2259
Joined: 15 Feb 2006, 14:32

Re: Creating Varied Transparency Mask

Post by ematecki »

Ok, I misunderstood...
Convert to B&W.
Then try the Luma Keyer with these values :
Untitled.png
Untitled.png (15.01 KiB) Viewed 13948 times
Because of data validation, you have to input the 255s from right to left...
Quicktime is DEAD. Get over it and move on !
pixelpusher
Posts: 19
Joined: 05 Nov 2013, 17:06

Re: Creating Varied Transparency Mask

Post by pixelpusher »

Thanks ematecki!
This was a great solution to what I was trying to do!
I so appreciate your assist.
Be well and thank you!
Post Reply