From BlenderWiki

Jump to: navigation, search

Subpages

Development Projects

Double Edge Mask compositor node

This node allows dynamic mask creation with user defined feather region. A single channel inner mask, and a single channel outer mask, are input. A single channel mask is output.

Gradient shaded region is drawn where outer mask is non-zero (not black in outer input image) but inner mask is zero (black in inner input image).

  • There are issues with the mask hitting the edge of the screen. As this node is image-based, this "problem" cannot be 100% correctly solved. Future work on a true VFX style mask editor will allow this problem to be solved. This node simply allows the artist to choose between two different "edge handling modes".

That being said, here's an idea of what it looks like in Blender :) ...

3dview 1.png

Two mask objects with one inside the other... both have IDs set.

Rendered IMGview 1.png

Render of the two centered objects.

3dview 152.png

A later frame in the animation, with objects moved. Specifically, moved relative to each other.

Rendered IMGview 152.png

Render of the moved objects.

Nodeview.png

Another set of example images, objects...

Dem-node-3d-view.png

...and rendered.

Dem-node-rendered-view.png

Node setup to create double edge masks. Note that this takes IMAGES, not objects, and object ID based mask, renderlayers, or just regular input images all work the same.