Jump to: Board index » General » Fusion

Remove incorrect keyframes from planar tracker data?

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

TCP786

  • Posts: 203
  • Joined: Thu Sep 16, 2021 7:05 am
  • Real Name: Cody Predum

Remove incorrect keyframes from planar tracker data?

PostSun Oct 17, 2021 7:48 am

Can you remove certain frames from the middle of a planar tracker's tracking data? I have a shot that tracked well for the most part, but there's a quick camera movement in the middle with enough motion blur that my planar transform is erratically changing size during those frames. Can I just remove those frames from the tracking data and have it just interpolate during that section? Deleting the splines for the problematic frames didn't seem to work.
Online
User avatar

TheBloke

  • Posts: 1746
  • Joined: Sat Nov 02, 2019 11:49 pm
  • Real Name: Tom Jobbins

Re: Remove incorrect keyframes from planar tracker data?

PostSun Oct 17, 2021 3:43 pm

Yeah you can delete keyframes and it will interpolate the transformation where keyframes are missing.

Here's a couple of examples in a comp.
TestPlanarRemoveKFs.comp.zip
(13.59 KiB) Downloaded 38 times

Image

In both examples the the source 'footage' is a moving black rectangle. In the first example, this movement is linear; in the second, it's eased via the default "smooth" operation that does an ease-out, ease-in.

Each example has an 'Original' Planar Transform, with all its keyframes, and a 'RemoveKF' Planar Transform, in which I've removed nearly all the keyframes. In the Linear example I removed all but the first and last keyframes, and in the Eased version I removed all but the first three and last three.

These Planar Transforms are then used to merge a red rectangle over the original black rectangle.

In the linear example, the RemoveKF Planar Transform has the red rectangle sticking to the black rectangle: it works even with only two keyframes because the movement is completely consistent and linear.

In the eased example, the red rectangle starts and ends in the right place, but slips off in the middle, because the few keyframes remaining aren't enough to follow the eased movement of the black rectangle.
Resolve Studio 17.4.2 and Fusion Studio 17.4.2 on macOS 11.6.1

Hackintosh:: X299, Intel i9-10980XE, 128GB DDR4, AMD 6900XT 16GB
Monitors: 1 x 3840x2160 & 3 x 1920x1200
Disk: 2TB NVMe + 4TB RAID0 NVMe; NAS: 36TB RAID6
BMD Speed Editor
Offline

TCP786

  • Posts: 203
  • Joined: Thu Sep 16, 2021 7:05 am
  • Real Name: Cody Predum

Re: Remove incorrect keyframes from planar tracker data?

PostMon Oct 18, 2021 1:51 am

Hmmm, interesting. I was doing it right, and it was working, but my shot moves in weird ways that the interpolation doesn't work for. Bummer. There isn't a way to edit a planar transform, right? I think I might have asked that somewhere else before.
Online
User avatar

TheBloke

  • Posts: 1746
  • Joined: Sat Nov 02, 2019 11:49 pm
  • Real Name: Tom Jobbins

Re: Remove incorrect keyframes from planar tracker data?

PostMon Oct 18, 2021 9:40 am

Inside Fusion, no I don't believe so. Other than re-tracking and then making a new Planar Transform.

Technically it would be possible to modify the track in a text editor. A Planar Transform stores its transformations like this:
Code: Select all
[1] = { 1, LH = { 0.666666666666667, 0.666666666666667 }, RH = { 1.33333333333333, 1.33333333333333 }, Flags = { Linear = true, LockedY = true }, Value = Matrix { RefTime = 0, ToRef = { [0] = 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.00653926283121109, 0.00601110193464494, 0, 1 } } },
The Matrix assigned to Value is the transformation data. If you could work out what that was doing exactly, you could create any transformation you wanted by filling in the appropriate values.
Resolve Studio 17.4.2 and Fusion Studio 17.4.2 on macOS 11.6.1

Hackintosh:: X299, Intel i9-10980XE, 128GB DDR4, AMD 6900XT 16GB
Monitors: 1 x 3840x2160 & 3 x 1920x1200
Disk: 2TB NVMe + 4TB RAID0 NVMe; NAS: 36TB RAID6
BMD Speed Editor
Offline

Hendrik Proosa

  • Posts: 1977
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: Remove incorrect keyframes from planar tracker data?

PostMon Oct 18, 2021 10:14 am

One theoretical option would be to bake the transform to four cornerpin points, and then animate/interpolate those as needed. Matrix multing the corner positions (unity coords or something else) with transformation matrix of planar tranaform should do it.
I do stuff.
Offline

birdseye

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

Re: Remove incorrect keyframes from planar tracker data?

PostMon Oct 18, 2021 12:53 pm

Another not very technical option could be to nudge the original Planar Transform with a second Transform or DVE Transform
Offline

Joe Laffey

  • Posts: 192
  • Joined: Mon Feb 16, 2015 7:52 pm

Re: Remove incorrect keyframes from planar tracker data?

PostWed Oct 20, 2021 8:39 pm

Another option is to skip past that problem frame and retrack from there with a new Planar Tracker and then dissolve between the two. You then fudge the messed up frame with transforms/GridWarp.

Return to Fusion

Who is online

Users browsing this forum: Nicolas and 21 guests