Blenderstorm Polls and Ideas:
show ideas | about |
Log in

idea #403: Option to cleanly combine "ID Mask" output (or get the non antialised version)



bug  This idea was marked as already implemented the 28.05.2008.
implemented
Already done!
(0) (+2,-2)
Written by hoehrer the 28 May 08 at 15:03. Category: Compositor. Status: Already implemented
Description
Often one wants to combine 2 or more (bordering or overlapping) ID Masks.
The problem is that they often are anitalised and mixing them with nodes (i.e. "Mix" node) often results in mask-"halos" around some objects.
(EDIT: [Unusable] example of node-mixing http://www.flickr.com/photos/63231715@N00/2494419158)

So a way to combine them before they are converted to a bitmap (if that is even possible) would be quite handy here.

Of course a way to get a non antialised output of the "ID Mask" node might work as well and it may even be more flexible ("Mix" nodes will work correctly on purely BW images)

Example:
Combining mask 1 and mask 2 in this image:
http://wiki.blender.org/index.php/Image:Manual-Compositing-Node-IDMask_ex.jpg
Note: No, one can't simple take an inverted 0 mask here, because this is a simplified example and it will break if there are more masks.
The second example (with "halo" around borders") was already linked above.

Disclaimer: I'm still pretty much a noob when it comes to the compositor, so there may already be a way to do this cleanly. C&C welcome.

Werner


Attachments
No attachments.


Duplicates


Comments
DeveloperDeveloper broken (Blender Developer) wrote on the 15 May 08 at 05:07
Just combine them with a mix node set to 'Lighten'.

DeveloperDeveloper broken (Blender Developer) wrote on the 15 May 08 at 05:07
or 'screen' for that matter.

hoehrer wrote on the 15 May 08 at 09:47
That doesn't r4eally work that well.
I _always_ get a halo of the other color around masks combined with that .. this comes mostly from the already antialised edges.

Werner

hoehrer wrote on the 15 May 08 at 10:09
A pretty simple example is shown here:
http://www.flickr.com/photos/63231715@N00/2494419158/

Werner

AdminAdmin vilda (Blenderstorm admin) wrote on the 26 May 08 at 12:19
Using FSA is a solution for this.


Post your comment