Jump to: Board index » General » Fusion

Mask and Tracking

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

Edwin Rivera

  • Posts: 160
  • Joined: Wed Aug 03, 2016 4:53 pm

Mask and Tracking

PostFri Jan 27, 2017 1:22 pm

Hi guys so i was trying to mask a door but the footage had some slight movement so i tried to track a small part of the door to have the data and roto the whole door so i can try to do more work in less time


it almost worked but i got stucked half way

i have some screenshots of my Composition

Please and thank you to anyone who lends a hand
Offline

Edwin Rivera

  • Posts: 160
  • Joined: Wed Aug 03, 2016 4:53 pm

Re: Mask and Tracking

PostFri Jan 27, 2017 1:24 pm

flow.PNG
flow.PNG (30.86 KiB) Viewed 7299 times




original.PNG
original.PNG (432.12 KiB) Viewed 7299 times




roto reference.PNG
here is the door i want to roto
roto reference.PNG (439.38 KiB) Viewed 7299 times
Offline

Sander de Regt

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

Re: Mask and Tracking

PostFri Jan 27, 2017 1:27 pm

At what point did you get stuck? It's not quite clear from your post.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

Edwin Rivera

  • Posts: 160
  • Joined: Wed Aug 03, 2016 4:53 pm

Re: Mask and Tracking

PostFri Jan 27, 2017 1:27 pm

roto selection.PNG
already selected it
roto selection.PNG (148.05 KiB) Viewed 7297 times



Tracker from other small selection.PNG
what i did here was that i just used a small mask and then use the "publish tracker path option" then erased the mask and leaved the tracker cause i only needed a track reference
Tracker from other small selection.PNG (434.69 KiB) Viewed 7297 times
Offline

Edwin Rivera

  • Posts: 160
  • Joined: Wed Aug 03, 2016 4:53 pm

Re: Mask and Tracking

PostFri Jan 27, 2017 1:29 pm

now that i had the tracker and the roto i failed to make the roto follow the trackig path


What did i do wrong??

Please and thank you once again
Offline

Sander de Regt

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

Re: Mask and Tracking

PostFri Jan 27, 2017 1:30 pm

So do you want to remove the door behind the actor? Or what is it you're trying to do?
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

Edwin Rivera

  • Posts: 160
  • Joined: Wed Aug 03, 2016 4:53 pm

Re: Mask and Tracking

PostFri Jan 27, 2017 1:39 pm

Hi Sanders

Im trying to roto the door because it has a green screen at the side and the door is green

so it kinda takes the edge of the door a little bit but the chroma mistake can be seen.


Also i tried to only select the chroma part but since the footage has movement i can't make a precise masking so i always get some part of the door...im trying to do my best
Offline

Sander de Regt

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

Re: Mask and Tracking

PostFri Jan 27, 2017 1:44 pm

Can you share the moving footage so we can see what you're doing?

Depending on the kind of movement it shouldn't be too difficult to do what you want to do.
It just appears that you're using too many steps to achieve this. As soon as you track all the data is already available. There is no need to publish stuff, since the fact that you tracked the footage has provided you with published data already. You can just connect the mask to the tracker and then create your mask and you should be good to go.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

Edwin Rivera

  • Posts: 160
  • Joined: Wed Aug 03, 2016 4:53 pm

Re: Mask and Tracking

PostFri Jan 27, 2017 1:49 pm




also the guy in this tutorial uses a script

but when i do the same steps i can't see the same options

i try to do something similar since the "tracker path" is on the "connect to" option
Last edited by Edwin Rivera on Fri Jan 27, 2017 1:53 pm, edited 1 time in total.
Offline

Sander de Regt

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

Re: Mask and Tracking

PostFri Jan 27, 2017 1:52 pm

The link doesn't work for me. Does it work for you?
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

Edwin Rivera

  • Posts: 160
  • Joined: Wed Aug 03, 2016 4:53 pm

Re: Mask and Tracking

PostFri Jan 27, 2017 1:53 pm

yes it works for me

write in youtube: Fusion Tutorial Rotoscoping Simple Shapes by Traking
Offline

Sander de Regt

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

Re: Mask and Tracking

PostFri Jan 27, 2017 2:39 pm

Is this the one?



It's not a very good workflow actually, that is shown in that video. There is no need to duplicate the loader in Fusion and it's very uncommon to mask a loader directly. If you can share *your* footage that would be more helpful, since I/we can be more specific helping you out.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

Edwin Rivera

  • Posts: 160
  • Joined: Wed Aug 03, 2016 4:53 pm

Re: Mask and Tracking

PostFri Jan 27, 2017 4:06 pm

i'll try to post it here as soon as i have the chance

Can you please tell me your email so i can send it to you

the thing is that the forum won't let me upload it

only 2MB for upload and no .mp4

thanks man
Offline

Sander de Regt

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

Re: Mask and Tracking

PostMon Jan 30, 2017 10:34 pm

Hi Edwin,

Before I go into tracking the mask(which is a good way to go in some cases)
have you tried the following?

Yes, you have greenscreen, but it's not a very good color green. There is also lots of red and blue in there, so it's difficult to key. But it is very evenly lit. I've used a wand mask inside of the door and got the following result in less than two minutes. I'm sure that with a little tweaking it will be better, but especially with a shot this short, you'd probably get away with it, no problem.

Code: Select all
{
   Tools = ordered() {
      Wand1 = WandMask {
         Inputs = {
            SoftEdge = Input { Value = 0.00170212765957447, },
            MaskWidth = Input { Value = 1920, },
            MaskHeight = Input { Value = 1080, },
            PixelAspect = Input { Value = { 1, 1 }, },
            ClippingMode = Input { Value = FuID { "None" }, },
            Source = Input {
               SourceOp = "Loader1",
               Source = "Output",
            },
            SelectionPoint = Input { Value = { 0.162444113263785, 0.26953642384106 }, },
            Range = Input { Value = 0.45531914893617, },
         },
         ViewInfo = OperatorInfo { Pos = { -368, -111 } },
      },
      Loader1 = Loader {
         Clips = {
            Clip {
               ID = "Clip1",
               Filename = "F:\\Downloads\\VFXchallenge\\original footage.mp4",
               FormatID = "QuickTimeMovies",
               Length = 39,
               Multiframe = true,
               TrimIn = 0,
               TrimOut = 38,
               ExtendFirst = 0,
               ExtendLast = 0,
               Loop = 1,
               AspectMode = 0,
               Depth = 0,
               TimeCode = 0,
               GlobalStart = 0,
               GlobalEnd = 38
            }
         },
         Inputs = {
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
         },
         ViewInfo = OperatorInfo { Pos = { -491, -83 } },
      },
      MatteControl1 = MatteControl {
         Inputs = {
            MultiplyGarbageMatte = Input { Value = 0, },
            Background = Input {
               SourceOp = "Loader1",
               Source = "Output",
            },
            GarbageMatte = Input {
               SourceOp = "Wand1",
               Source = "Mask",
            }
         },
         ViewInfo = OperatorInfo { Pos = { -263, -59 } },
      },
      MatteControl2 = MatteControl {
         CtrlWZoom = false,
         Inputs = {
            MatteBlur = Input { Value = 0.25, },
            MatteContractExpand = Input { Value = -0.182978723404255, },
            PostMultiplyImage = Input { Value = 1, },
            Background = Input {
               SourceOp = "MatteControl1",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { -105, -59 } },
      }
   },
   ActiveTool = "MatteControl2"
}
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

Edwin Rivera

  • Posts: 160
  • Joined: Wed Aug 03, 2016 4:53 pm

Re: Mask and Tracking

PostWed Feb 01, 2017 1:04 am

Thanks a lot Sander's

I will try it once i get home

thank you very much
Offline

Edwin Rivera

  • Posts: 160
  • Joined: Wed Aug 03, 2016 4:53 pm

Re: Mask and Tracking

PostSat Feb 04, 2017 2:59 am

Hi sanders it did work and i will used it often

But i still ask?
How can i do the mask and tracking work
Just for future proyects

Im trying it out myself but i always ALWAYS fail miserably i don't know what the heck am i doing wrong?

Please help me
And thank you very very much
Offline

Sander de Regt

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

Re: Mask and Tracking

PostSun Mar 05, 2017 1:16 pm

Hi Edwin,

I've created a tutorial to help you (and others) out with this subject. The tutorial can be found here:

viewtopic.php?f=22&t=56956

and I've embedded it here as well

Last edited by Sander de Regt on Wed Mar 08, 2017 8:58 pm, edited 1 time in total.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline
User avatar

Bryan Ray

  • Posts: 2491
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: Mask and Tracking

PostSun Mar 05, 2017 4:44 pm

Your roto is plugged into the wrong input of the Tracker. Use the green input for the pixels you want the Tracker to move around. Then plug the output of the Tracker into the EffectMask input of whatever you want to mask.

You won't be able to plug the roto into both the Foreground of the Tracker and the mask input of the Footage if you have the Footage connected to the Background of the Tracker. That would create a feedback loop, and Fusion won't allow it.

Untitled.png
Untitled.png (34.19 KiB) Viewed 6913 times
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline

Edwin Rivera

  • Posts: 160
  • Joined: Wed Aug 03, 2016 4:53 pm

Re: Mask and Tracking

PostWed Mar 08, 2017 11:36 pm

Sander and Bryan

Thank you thank you so so much for the tutorial and the tracker aclaration this is gonna helped me a lot. Both of your references are great.

Also to everyone else thank you for all of your suggestions

Have a nice day

Return to Fusion

Who is online

Users browsing this forum: No registered users and 46 guests