Blender Git Loki

Git Commits -> Revision 4b3e624

Revision 4b3e624 by Sergey Sharybin (soc-2011-tomato)
August 7, 2013, 07:45 (GMT)
Mask points now could be parented to the plane track

MaskParent structure was extended by:
- type, which indicates whether it's a parent to point
or plane track. Types might be extended further.

- Original corners, which are used to obtain homography
used to deform point's coordinate.

Homoraphy is detecting between original corners position
(corners at the parenting time) and current plne corners,
and the it's being applied on mask point coordinate.

Some tricks with switching between mask and clip coords
is needed, but it's all pretty much straightforward in
the code.

Parenting happens on spline point level, not spline one.
This fits existing design, and it's not so big difference
for artist.

Parenting operator (Ctrl-P) might for sure be used to
parent points to the active plane track.

Additional change: added visualization of plane corners
orientation. Corner which corresponds to left bottom
image corner now has got two axis: red which corresponds
to X axis, and green one for Y axis. This way it's
easier to orient corners on the footage.

Commit Details:

Full Hash: 4b3e6244f81c0fc8ea0e3e42de2453c8e524ffab
SVN Revision: 58988
Parent Commit: c7411ea
Lines Changed: +204, -55

10 Modified Paths:

/release/scripts/startup/bl_ui/properties_mask_common.py (+7, -2) (Diff)
/source/blender/blenkernel/BKE_tracking.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/mask.c (+47, -23) (Diff)
/source/blender/blenkernel/intern/tracking.c (+21, -0) (Diff)
/source/blender/compositor/operations/COM_PlaneTrackWarpImageOperation.cpp (+1, -1) (Diff)
/source/blender/editors/mask/mask_relationships.c (+39, -16) (Diff)
/source/blender/editors/space_clip/clip_draw.c (+43, -1) (Diff)
/source/blender/editors/space_clip/tracking_ops.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_mask_types.h (+11, -2) (Diff)
/source/blender/makesrna/intern/rna_mask.c (+33, -10) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021