Forums > Jitter

alpha mask isn't doing the job right. please help!

Feb 14 2010 | 12:22 pm

I’m using jit.lcd object to create a simple pong game and I need to combine it with live streaming video so that it over lays the video showing both the video captured and the pong (rectangles and ball) over.

I’ve tried to use an alpha mask but for some reason its only showing the video THRU the jit.lcd 2D objects I’ve created.

Any Ideas?

Feb 14 2010 | 8:51 pm

something like this might work: set the lcd background to transparent and have a jit.pwindow in the back playing your movie:

-- Pasted Max Patch, click to expand. --

Feb 14 2010 | 9:48 pm

Thank you so much for you reply. It is greatly appreciated.
I’m quite new to Max, what is this code you sent me? What do I do with it?

And more importantly, HOW do i set the background to transparent?

Feb 15 2010 | 8:48 am

Hey MIB,
Thanks for the code! I just figured out how to decode it! :)

My problem is I don’t understand how the triangle appears and why it doesn’t flow all the way through.

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter