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

Feb 14, 2010 at 12:22pm

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

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?

#48483
Feb 14, 2010 at 8:51pm

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. –
#174363
Feb 14, 2010 at 9:48pm

MIB,
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?

#174364
Feb 15, 2010 at 8:48am

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.

#174365

You must be logged in to reply to this topic.