Apply a mask to existing pixels Topic is solved

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
it_ross
Posts: 14
Joined: 22 Sep 2021, 06:44

Apply a mask to existing pixels

Post by it_ross »

I'm trying to hide part of a character's body, without actually just erasing part of that character. I would like to know if I can use a new mask to hide pixels on a layer where there are already pixels drawn.

I understand the basics of how to use a mask: I can draw on one layer (layer 1), activate the mask for that layer, create a new layer above it (layer 2), and my lower-layer mask will apply to the above layer, either allowing me to only draw within the pixels of the first layer, or only draw outside of those pixels.

The problem is that the mask will only apply to pixels that I draw AFTER I activated the mask. I understand that there simply may not be a way to hide an existing character using a mask, but then what would be the method? (I'm trying to hide the character's feet in the background) I've tried messing around with blending modes, but that hasn't helped (the erase mode comes close, but it erases all of the layers below it, not just one).

Any help would be appreciated!
User avatar
slowtiger
Posts: 2949
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: Apply a mask to existing pixels

Post by slowtiger »

If you don't want to erase parts of a body which shall not be visible, just copy the BG parts that cover it on a layer on top of that.
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
D.T. Nethery
Posts: 4225
Joined: 27 Sep 2006, 19:19

Re: Apply a mask to existing pixels

Post by D.T. Nethery »

it_ross wrote: 07 May 2022, 22:47 I'm trying to hide part of a character's body, without actually just erasing part of that character. I would like to know if I can use a new mask to hide pixels on a layer where there are already pixels drawn. (I'm trying to hide the character's feet in the background) I've tried messing around with blending modes, but that hasn't helped (the erase mode comes close, but it erases all of the layers below it, not just one).
The easiest way to do what you describe is as Slowtiger says in his post above.

Think of it in terms of using an overlay to "mask" out a part of the character (such as the character's feet) rather than the type of masking that is used in Photoshop , which doesn't exist in TVPaint. (maybe it should ... there has certainly been discussion about it over the years. See here: https://www.tvpaint.com/forum/viewtopic.php?f=21&t=6866 In that discussion there was an example of how by combining certain layer blend modes you can achieve a kind of masking effect. See this post by Lukas: https://www.tvpaint.com/forum/viewtopic ... 866#p63025 . In another topic on masking it is said that a Photoshop style clipping mask feature was on the developer's "To-Do List" . See: https://www.tvpaint.com/forum/viewtopic ... 40&p=86045 . However, that was back in 2015 , so if anyone wants a Photoshop style clipping mask to go back on the developer's current To-Do List I think posting a new feature request in the Feature & Improvement Requests sub-forum would be appropriate at this time. I'm fairly sure it won't happen in the current engine (TVPaint 11) , but I hope to see it in TVPaint 12. So many people come to TVPaint from the Adobe world and they miss having common functions like layer masks that they have in Photoshop.



So, anyway, for the present when using TVPaint don't think of it in terms of a mask like you would use in Photoshop:

Image


Instead , in TVPaint make the part of the background which will obscure part of the character (i.e. lower legs/feet) as a separate OL layer which is placed above the character layer. If the section on the Background that will function as an Overlay was already painted on the background you can use the selection tool to select that part and copy it to a new layer, which is placed over top of the character layer, thus making a "mask". This is an easy way to do what you describe in your post - "hide part of a character's body, without actually erasing part of that character."

Image



Overlay:
Image


Character layer:
Image



combined with the Background:
Image


--------


It could be a more subtle Overlay. Let's say the character is standing in the yard like this:


Image


But you wanted his shoes to be partially covered by grass.

Make a grass overlay:

Image


Which goes over the character layer:

Image

Image

So the final composite image looks like this , with the feet "masked" by the grass overlay:

Image



In most cases small bits of the Background image can be selected and cut out to an overlay which allows the character to pass behind or be partially obscured by the overlay.

Image

Image

Image

.
Last edited by D.T. Nethery on 10 May 2022, 15:17, edited 6 times in total.

Animator, TVPaint Beta-Tester, Animation Educator and Consultant.
MacOS 12.7.1 Monterey , Mac Mini (2018) , 3.2 GHz 6-Core Intel Core i7,
16 GB RAM , TVPaint PRO 11.7.1 - 64bit , Wacom Cintiq 21UX 2nd Gen.
,Wacom Intuos Pro 5 , Wacom driver version 6.3.39-1
User avatar
Peter Wassink
Posts: 4436
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: Apply a mask to existing pixels

Post by Peter Wassink »

David, i can't see your images,
in my browser your post looks like this:
Schermafbeelding 2022-05-09 183824.png
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
User avatar
D.T. Nethery
Posts: 4225
Joined: 27 Sep 2006, 19:19

Re: Apply a mask to existing pixels

Post by D.T. Nethery »

Peter Wassink wrote: 09 May 2022, 19:09 David, i can't see your images,
in my browser your post looks like this:

Schermafbeelding 2022-05-09 183824.png
Thanks for letting me know , Peter. I could see the images earlier when I posted them , but now I can see they are not showing up. Weird. I'll edit the post and repost the images from a different image sharing site.

----
UPDATE: ok, I re-posted the images above. Do they show up now ?

Animator, TVPaint Beta-Tester, Animation Educator and Consultant.
MacOS 12.7.1 Monterey , Mac Mini (2018) , 3.2 GHz 6-Core Intel Core i7,
16 GB RAM , TVPaint PRO 11.7.1 - 64bit , Wacom Cintiq 21UX 2nd Gen.
,Wacom Intuos Pro 5 , Wacom driver version 6.3.39-1
Svengali
Posts: 1571
Joined: 28 Dec 2006, 10:08

Re: Apply a mask to existing pixels

Post by Svengali »

David,
I saw the images when you first posted, but later they were missing (as Peter reported). Now they are present again just as they originally appeared. Something must have happened at the original sharing service?

sven
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
Post Reply