Blender Git Commit Log

Git Commits -> Revision 1cbb272

Revision 1cbb272 by Sergey Sharybin (soc-2011-tomato)
August 3, 2013, 19:53 (GMT)
Initial code layout for plane track deform node

Idea of this is:
- User selects which plane track to use (for this he
need to select movie clip datablock, object and track
- Node gets an image and mask inputs (both are optional).
- Node outputs:
* Input image warped into the plane.
* Input mask warped by the plane.
* Plane, rasterized to a mask.

Warping image is done by computing reverse bilinear
coordinates, and getting pixel from corresponding

This requires some tricks with downsampling to make warped
image looks smooth.

Currently compositor doesn't support downsampling, so we
needed to implement our own operation for this.

Currently idea is dead simple: value of output pixel equals
to an average of neighborhood of corresponding pixel in input
image. Size of neighborhood is defined by ratio between input
and output resolutions.

This operation doesn't give perfect results and works only
for downsampling. But it's totally internal operation not
exposed to the interface, so it's easy to replace it with
smarter bi-directional sampler with nicer filtering.

- Node currently only warps image and outputs mask created
out of plane, warping input mask is not implemented yet.
- Image warping doesn't report proper depending area of
interest yet, meaning interactivity might be not so much
- There's no anti-aliasing applied on the edges of warped
image and plane mask, so they look really sharp at this

Commit Details:

Full Hash: 1cbb2725c52e87bc7e951cc2c74c624e19f6a88a
SVN Revision: 58871
Parent Commit: 8f57259
Lines Changed: +1045, -2

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2021