How to 'key' out a jit window background and replace with a video - Suggestions?
Hey Guys,
I'm drawing a series of shapes (lines) via jit.gl.render to a window. The window has a black background which I would like to key out so that I can then play a video in behind as a background.
What is the best way to do this? Obviously I can't place a suckah over the window. I have a lot of different notions about it but can't get a workflow going in my 'fried' head!!
Any help/suggestions and/or examples would be appreciated.
Thanks
Hey Guys,
Just as further info...I'm testing out things with jit.gl.videoplane. The movie is playing OK when I send it using this object but when I name my jit.gl.render to the same name as the videoplane I can't see my 'drawings'. It's almost working but I must need an extra step or something. So back to my initial post for further explanation....
Thanks
just make sure that your jit.gl.videoplane is rendered first and the shapes next. This can be done by using @layer 0 for the jit.gl.videoplane and @layer 1 for everything else (multiple layer 1 don't give you control over rendering order though.
Hi Llumen,
Thanks for your reply....its guys like you who make this forum invaluable for us 'L' drivers!!
Anyway, my patch is based on B.Debackeres spiro patch. I have attached it here so you can see what I mean. I want to be able to replace the black background with a video. I have tried sending it a drawto command so I could key out the black and do a simple key replacement but nothing shows up. I think it might be something to do with rendering speed. Perhaps you could have a look at this and tell me how you think I should approach this.
PS I have included a videoplane subpatch in this, if you run that as well you will see the problem I am having...or maybe I don't even need that?
as an addendum to the above...I tried sending a drawto command to the render to get it into a matrix where I could then just chromakey. Nothing appears on the pwindow tho when I tried this way. As aforementioned I think it may be that it can't be rendered fast enough. My overall patch is much larger than this and all working fine - I'm just stuck on this bit....
Thankx
maybe using [jit.gl.texture]? You could also try also using [jit.gl.gridshape @shape sphere @scale 20. 20. 20.] instead of a videoplane. You create a huge sphere, and apply the texture to the sphere... like in videogames.
Also, you should be aware that you are using 2 [jit.gl.render] and 2 jit.gl.window to do the same job.
Cool patch BTW!
Hi Bea...
Thanks for that. The problem with using texture is that I only want the rendered drawing to be 'rotatable' with the gl.handle object. I want the video to remain static but if I use rotation the whole thing is turning. Is it the case that this isn't possible as this is a shared space?
Thanks
is this what you want?
Hi Llumen,
That's exactly what I was trying to achieve - why does it now look so obvious?? I feel a bit dumb now but then the answer's always easy when you know it - which I didn't of course! I couldn't see the wood for the trees....You're a star Llumen!
Thanks for your time, trouble and patience and of course to everyone else who assisted in getting to this point.. especially MIB, Scatlogic & Beatriz.
Seasons greetings to you all
Cheers