Partitioned video masks

Ok, now that I’ve got your attention with this strange title, I’ll tell ya what I want. :)

Say I want to project videos on a wall with a door. But not an ordinary door: that one that is curved at the top. Know which one is it?

Okay, what I want is to project a video on the wall and another and different video on the door. It would be quite simple if they were all squared, because I would use FileStream + VideoTexture on two quads. But with varied and different shapes, this is not possible.

I thought of creating image masks on another software then load on a quad. On another, I would put the videotexture, and then I would blend or multiply them. But none of these scenarios would work, since the other area would be obscured by the black part of the image mask (multiply or add).

So, I ask: how would you guys do it?

Thanks!

I’d still VideoTexture onto two quads, just don’t have them on same Z co-ord, and then place a couple of custom shaped grids or XFile models in front of each quad. I’d just set the projector up and play around until I got the right mask. Check out the node GridEditor (EX9) and press F1 to see help for it. Set up your grid using the editor and then connect it to a Constant (EX9.Effect) and set its color to black. Or make a 3d model and import the X file using XFile (EX.Geometry Load) and again connect to the constant effect.

There are a few ways to do this, this is just one, and certainly not the best.

good luck

Hi candian,

I do this all the time using the pixel shader TexCtrlFade, which uses a texture to mask between two other textures:

http://vvvv.org/tiki-download_file.php?fileId=1190

Just do FileStream > VideoTexture > TexCtrlFade with your two videos. Then take a picture of the door from the projector’s position and use a image editor to create a black & white masking image, then apply it with a FileTexture node. So the TexCtrlFade node should have: input1 video1; input2 video2; input3 image mask.

I like to use 2 videos with contrast and saturation turned all the way up and use some black & white animated geometry spreads as a mask. It’s so psychedelic people just stand there slack-jawed and stare at it. I love it!

1_2008.05.29-22.39.19.jpg (213.5 kB)

using the TexCtrlFade for mapping:
quite interesting.
never thought about this.

seems to be a real multipurpose shader…