Blending OpenGL with video

Oct 16, 2010 at 11:13am

Blending OpenGL with video

I’ve been trying to create something which mixes several layers of video with an OpenGL render. I think my problem lies in creating an alphamask for the render with the video grab: it appears to be dropping the resolution of the GL shapes down to that of my jit.qt.grab, rather than just masking the output.

I’m sure I’m just approaching this the wrong way, so whilst I’m happy to post my crazy, sprawling patch if need be, I thought it might be just as easy to see if anyone can point me in the direction of a reference/tutorial/post that covers this? I get the feeling I can’t see for looking!

#52778
Oct 17, 2010 at 8:08pm

Try making a simplified version of what you want and posting it up. It also seems like you could just mess with blend_enable on jit.gl.videoplane or something like that..but what about just putting one gl shape with a video and post that up and see what we can do.

#189769
Oct 17, 2010 at 9:42pm

Thanks, laserpilot. I’ve tried to strip back my patch as much as possible here, but it still shows more or less what I’m trying to get across – particularly with the way the GL grid is rendered in the main window.

– Pasted Max Patch, click to expand. –
#189770

You must be logged in to reply to this topic.