This seems like a very basic effect, but I was wondering what it's called and how it's achieved:
Example video
So, there are two black and white layers (one is text in the example, but that's not vital), and when the blacks overlap, it automatically turns white. I'm sure it's very simple, but off the top of my head I can't even think of a quick way to do this with stills in Photoshop, never mind video. Can anyone point me in the right direction, please?
+ Reply to Thread
Results 1 to 7 of 7
-
-
It's done with masks and layers. A duplicate of the silhouette layer itself, is used a layer mask for the 2nd text layer (the one that "covers up" the original text layer). So whenever the silhouette layer intersects with original text, it will "reveal" a color-inverted layer (in that example, it's close-to-black and not-quite-white, but it doesn't have to be "inverted" or black and white only - it can "reveal" any replacement layer, any color)
The mask can be a luma mask (white/black shows where the "cutout" areas are), or an alpha mask (a separate alpha channel shows where the transparency or "cutout" areas are)
Is it clear? Or would a physical example help ? -
Thank you very much - you've explained that so clearly that I'm actually embarrassed I didn't figure it out for myself!
-
It's a simple XOR algorithm. You might be able to find a filter that does it directly. For example, AviSynth's Overlay() filter in "exclusion" mode does it.
Code:function XOR_Overlay(clip v1, clip v2, int xpos, int ypos) { Overlay(v1, v2, x=xpos, y=ypos, mode="exclusion") } BlankClip(width=640, height=480) Subtitle("Big Text", size=100, x=160, y=180, text_color=$FFFFFF) small_text = BlankClip(width=320,height=40).Subtitle("A line of small text", size=38, text_color=$FFFFFF) Animate(0, 100, "XOR_Overlay", last,small_text,100,150, last,small_text,300,300) Trim(0,100) AssumeFPS(24)
Last edited by jagabo; 18th May 2015 at 11:16.
-
Thanks, jagabo - much appreciated. I knew it must be relatively straightforward, but couldn't Google it because I had no idea what it was called.
-
A minor adjustment on the jagabo's overlay function - you need to set pc_range=true to avoid seeing the outline box of the small layer
Code:function XOR_Overlay(clip v1, clip v2, int xpos, int ypos) { Overlay(v1, v2, x=xpos, y=ypos, mode="exclusion", pc_range=true) }
Photoshop/AE has exclusion and other layer blend modes that produce similar results that you can play with, with and AE has a channel operator "XOR" . For pure black/white, jagabo's suggestion is a smarter way to do it and will render faster because of fewer layers
Similar Threads
-
Print in black and white only
By didikai in forum Off topicReplies: 1Last Post: 10th Mar 2014, 11:04 -
Turns black and white
By dadihawks in forum Newbie / General discussionsReplies: 1Last Post: 1st Oct 2011, 05:59 -
"Greenish" Black & White To "True(r)" Black & White?
By DeathStalker77 in forum RestorationReplies: 8Last Post: 30th Jul 2011, 08:39 -
Fade to black effect
By kimstips in forum Newbie / General discussionsReplies: 3Last Post: 10th Apr 2011, 11:03 -
black and white
By foofie131 in forum Newbie / General discussionsReplies: 2Last Post: 24th Mar 2011, 21:15