mask jit.gl.cornerpin

Sep 6, 2012 at 1:52am

mask jit.gl.cornerpin

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

#64236
Sep 6, 2012 at 11:07am

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

#231603
Sep 6, 2012 at 11:07am

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

#231628
Sep 6, 2012 at 8:36pm

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. –
#231605
Sep 6, 2012 at 8:36pm

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. –
#231629
Sep 9, 2012 at 4:26am

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

#231606
Sep 9, 2012 at 4:26am

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

#231630
Sep 10, 2012 at 4:48pm

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

#231607
Sep 10, 2012 at 4:48pm

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

#231631
Sep 11, 2012 at 3:19pm

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

Charles

#231608
Sep 11, 2012 at 3:19pm

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

Charles

#231632

You must be logged in to reply to this topic.