Page 1 of 1

How do you avoid negative RGBA values with matte control?

PostPosted: Tue Oct 04, 2022 4:09 pm
by joemart
I'm substracting a polygon with another and the Alpha value seems to go below 0. How do I avoid this? Is there a way to default it to 0 if it goes below 0? How would I go about this?

Re: How do you avoid negative RGBA values with matte control

PostPosted: Tue Oct 04, 2022 4:18 pm
by Sander de Regt
How are you substracting them? What method are you using?

Re: How do you avoid negative RGBA values with matte control

PostPosted: Tue Oct 04, 2022 5:25 pm
by Chad Capeland
You don't need MatteControl to subtract a mask. The masks themselves have a paint mode.

Re: How do you avoid negative RGBA values with matte control

PostPosted: Tue Oct 04, 2022 7:13 pm
by bentheanimator
They're both right but if you need to floor a channel you can always add a Brightness and Contrast node. There's a check box for Clip Black and White. That will 0.0 black and stop White at 1.0.

Re: How do you avoid negative RGBA values with matte control

PostPosted: Tue Oct 04, 2022 8:20 pm
by Bryan Ray
Remember to tick the Alpha box if you need to clamp the alpha, though. BrightnessContrast has that unchecked by default.