Page MenuHome

Image wrapping for plane track in clip editor
ClosedPublic

Authored by Sergey Sharybin (sergey) on Nov 29 2013, 10:47 AM.

Details

Summary

Now it's possible to assign an image to plane tracks
in clip editor. This image is only used for display
in clip editor and this image is being warped into
the plane track rectangle.

Main purpose of this is to get early feedback about
how good image warping matches the footage, before
clip goes to the compositor.

Pretty much straightforward change: just compute
homography from undeformed normalized frame corner
coordinates (unity square) to plane marker corners
and apply this matrix to opengl stack.

Still could improve behavior when perspective
plane transform is degenerate, but that's not so
much critical for now i'd say.

Diff Detail

Branch
plane_track_image

Event Timeline

Sergey Sharybin (sergey) updated this revision to Unknown Object (????).Nov 29 2013, 12:59 PM

Added support of image transparency

Also hide plane track quad if image is set.

Sergey Sharybin (sergey) updated this revision to Unknown Object (????).Nov 29 2013, 1:02 PM

Didn't notice the typo in check in previous patch

Sergey Sharybin (sergey) updated this revision to Unknown Object (????).Nov 29 2013, 1:06 PM

Tweaked drawing, so point tracks are always visible

Couldn't find any errors reading the code, I'll leave it to Sebastian to give feedback on the usability.

source/blender/editors/space_clip/clip_draw.c
1042

Nitpick: not sure why camel case is used here.

source/blender/makesrna/intern/rna_tracking.c
1480

Not strictly needed if the property identifier is the same.

Made changes corresponding to the feedback. Will land the changes soon :)