Jump to: Board index » General » Fusion

How do you replace a polygon mask with another polygon mask?

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline

BMDR User 9201

  • Posts: 29
  • Joined: Wed Apr 04, 2018 8:51 pm
  • Real Name: Thanh Chiu

How do you replace a polygon mask with another polygon mask?

PostThu Mar 28, 2024 4:20 am

Fusion beginner here. I'll try to simplify the example as I don't know the technical terms and I've exhausted myself through countless forum searches, YouTube videos, etc. but basically I have a Fusion clip of a person. I made a polygon mask around the person's face and tracked it and that's all good. I have an image of another person and I created a polygon mask around their face and I can't figure out how to replace the 1st polygon mask with the 2nd polygon mask. I don't just want to overlay the 2nd mask over the 1st mask because there are features like hair in the 1st mask that I want to retain to show up over the 2nd mask.
Offline

Sander de Regt

  • Posts: 3588
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: How do you replace a polygon mask with another polygon m

PostThu Mar 28, 2024 2:02 pm

Do you want to replace the mask, or do you want to add another mask? I am not sure based on the way the question was formulated. You say you want to keep the hair from the first mask. But this is the mask of another person's face, am I correct? So it sounds like you want to combine the two, not replace them.
If that's the case, you can just put the output of the first mask into the input of the second mask and then use the result from that as your new mask.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

BMDR User 9201

  • Posts: 29
  • Joined: Wed Apr 04, 2018 8:51 pm
  • Real Name: Thanh Chiu

Re: How do you replace a polygon mask with another polygon m

PostThu Mar 28, 2024 4:13 pm

My question is not formulated well (sorry).

Maybe this helps? Image


MediaIn1 = video clip of PersonA.
Polygon1 and PersonB = still image of a different person (PersonB) with a mask around their face only.
Polygon2 = mask around PersonA's face.

How do I add/connect Polygon2 into the sequence so that PersonB's face fills the area of the mask in Polygon2?
Offline

KrunoSmithy

  • Posts: 115
  • Joined: Fri Oct 20, 2023 11:01 pm
  • Real Name: Kruno Stifter

Re: How do you replace a polygon mask with another polygon m

PostFri Mar 29, 2024 10:37 am

BMDR User 9201 wrote: I can't figure out how to replace the 1st polygon mask with the 2nd polygon mask. I don't just want to overlay the 2nd mask over the 1st mask because there are features like hair in the 1st mask that I want to retain to show up over the 2nd mask.


If you just want to swap the polygon masks it should be pretty straightforward of simply un-connecting or un-hooking the node link of polygon1 that goes into PersonB node, and connecting in its place, polygon2.

Unless I misunderstood what you wanted.
Offline

Sander de Regt

  • Posts: 3588
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: How do you replace a polygon mask with another polygon m

PostFri Mar 29, 2024 4:17 pm

If I understand you correctly, you want to replace person A's face with that from person B.
And what you have now is a still of person B that's on top of person A (that's the output of the tracker)
but you want to only have the result of the tracker inside the 'hole' you created with polygon 2.

Without seeing how accurate your roto is, you probably will achieve the result you're looking for by just feeding the output of polygon2 into the blue triangle of the tracker node. Give that a try and see if it does what you're looking for.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

BMDR User 9201

  • Posts: 29
  • Joined: Wed Apr 04, 2018 8:51 pm
  • Real Name: Thanh Chiu

Re: How do you replace a polygon mask with another polygon m

PostTue Apr 02, 2024 4:14 pm

Thank you all. The suggestions didn't work but I'm attributing it to me explaining poorly. I'll provide a better screenshot with generic examples when I get time.
Offline

xunile

  • Posts: 3075
  • Joined: Mon Apr 23, 2018 5:21 am
  • Real Name: Eric Eisenmann

Re: How do you replace a polygon mask with another polygon m

PostWed Apr 03, 2024 5:48 pm

Do you mean something like this?
Attachments
2024-04-03 (10) (Medium).png
2024-04-03 (10) (Medium).png (483.48 KiB) Viewed 668 times
2024-04-03 (11) (Medium).png
2024-04-03 (11) (Medium).png (340.24 KiB) Viewed 668 times
2024-04-03 (12) (Medium).png
2024-04-03 (12) (Medium).png (494.35 KiB) Viewed 668 times
Win 10 Home | Intel i7 - 10700f 64 GB 1 TB GB SSD 2 TB SSD
RTX-3060 12 GB | Resolve Studio 18.6.6| Fusion Studio 18.6.6

Win 10 Home | Intel Core I7-7700HQ 32 GB 1 TB NVME SSD 1 TB SATA SSD
GTX-1060-6GB | Resolve 17.4.6
Offline

birdseye

  • Posts: 361
  • Joined: Fri Jun 12, 2020 2:36 pm
  • Real Name: Iain Fisher

Re: How do you replace a polygon mask with another polygon m

PostThu Apr 04, 2024 8:08 am

You state you have tracked, so there is movement involved in at least one of the faces. Unless the original movement of both faces matches quite closely, including rotation and distance from the camera, you are unlikely to make the swap look convincing. Add in the hair. if it moves over the face and that should be a real nightmare, just sayin'. Matbe it would be better to take the whole head clean off and plonk on the other one.

Return to Fusion

Who is online

Users browsing this forum: No registered users and 41 guests