Forums > MaxMSP

mask jit.gl.cornerpin


Sep 06 2012 | 1:52 am

Hi, does anyone know how to apply an alpha mask to the output of the jit.gl.cornerpin object? I’m currently using cc.alphaglue.jxs before the cornerpin, but I’d like to apply it after the warping.
-Charles

Sep 06 2012 | 11:07 am

you could capture as sub-rendercontext with jit.gl.node, then put the captured video into the slab and finally send to a videoplane in your main render context

Sep 06 2012 | 11:07 am

you could capture as sub-rendercontext with jit.gl.node, then put the captured video into the slab and finally send to a videoplane in your main render context

Sep 06 2012 | 8:36 pm

yup, that’s pretty much what you would do.
the one wrinkle is you lose mouse interaction when capturing a cornerpin to a node sub-context.
the patch below show’s how to toggle between the two modes.


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

Sep 06 2012 | 8:36 pm

yup, that’s pretty much what you would do.
the one wrinkle is you lose mouse interaction when capturing a cornerpin to a node sub-context.
the patch below show’s how to toggle between the two modes.


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

Sep 09 2012 | 4:26 am

It works except I can’t seem to blend the planes. Any idea why?

Sep 09 2012 | 4:26 am

It works except I can’t seem to blend the planes. Any idea why?

Sep 10 2012 | 4:48 pm

took me awhile, but the problem is you forgot the @ sign in your jit.gl.videoplane boxes for the @depth_enable attribute.

Sep 10 2012 | 4:48 pm

took me awhile, but the problem is you forgot the @ sign in your jit.gl.videoplane boxes for the @depth_enable attribute.

Sep 11 2012 | 3:19 pm

Yes that works. Sorry about the oversight….you’re doing a great job on the forum.

Charles

Sep 11 2012 | 3:19 pm

Yes that works. Sorry about the oversight….you’re doing a great job on the forum.

Charles

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

Forums > MaxMSP