Blending OpenGL with video

kodamapixel's icon

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!

laserpilot's icon

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.

kodamapixel's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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.