OpenGL to Matrix and other Q's.
I’m working on a music visualizer (It’s already working and done)that uses many gl.gridshapes and gl.graphs. I want, however to blend/mix various other material (qt movies, images, etc) over it…kind of like if my OpenGL rendering were a qt.movie itself and I could fade in and overlay other stuff.
I have searched the forums and saw people recommending jit.gl.asyncread. to rending the GL to a matrix…It seems however that in order for that matrix to look nice/not pixelated fullscreen, your OGL window has to be fullscreen as well (If it’s not, and I fullscreen the matrix window, all the objects are super pixelated). Having a matrix and the gl.render fullscreen at the same time brings my MBP to a crawl.
Is there anyway to access my gl.render in perfect quality and overlay .mov’s or images? What does the enable matrix output attribute of the jit.gl.render do? Is that what I need?
you can mix in videos with jit.gl.videoplane. You’ll probably want to set depth_test to 0 and blend_enable to 1 while varying the alpha in the color message.
I found myself in a similar situation some weeks ago, I had a live cinema piece where I was switching between some GL objects and a video plane running pre-render material. At the beginning I was enabling and disabling the objects using the enable attribute but I found, with a big surprise, that the cpu was still overloaded. The solution I came with was to stop sending bangs to the objects at the same time I disabled them, this way I was able to switch between the 3d objects and the movies.
Hope it helps!
|efe wrote on Thu, 21 May 2009 13:22|
|I found myself in a similar situation some weeks ago, I had a live cinema piece where I was switching between some GL objects and a video plane running pre-render material. At the beginning I was enabling and disabling the objects using the enable attribute but I found, with a big surprise, that the cpu was still overloaded. The solution I came with was to stop sending bangs to the objects at the same time I disabled them, this way I was able to switch between the 3d objects and the movies.
Hope it helps!
So I just do a gl.videoplane in fullscreen on my render and mess with the transparency?
No, that won’t help. Of course you can use the transparency in order to make transitions, but if you want to save cpu you need to disable the objects that you don’t want to use and stop sending bangs to them. The way I did it was by using an if conditional together with an umenu. I am not at home now but I will try to post an example later.
Depending on whether you want your movie playing in front or behind the OpenGL geometry, you can set the @layer attributes for your objects for an easy way to define rendering order. Higher layers will be rendered in front of (after) lower layers. Changing the alpha color (w/ @blend_enable 1) will give you transparency. You can also use various keying techniques to show only parts of your video.
Is it possible to know how to get a mix between jit.gl objects and jit.qt.movie or grab??
I need to mix a jit.qt.grab, after the effect jit.brass with a jit.gl.videoplane or jit.gl.render object.
Thank you very much for your help.
I am trying to use the 0.Glfo patch (recipe 1 ) to animate some videoplanes with blend_enable on.
It works well but when I add a another videoplane as background, only one videoplane is visible, the other ones are still animated but behind my videoplane background. Is there any way to get them all on top of a background or other videoplanes layers.. ?
----------begin_max5_patcher---------- 2179.3oc4bs0aaaCE94Tf9ePvnOMjYvqhRCn.YCqauTrATfArKnHP1l1Qs1R tRJMIsX829nHobTb7ERGRI00dwx5hsO7imKemygRe94O6rQSxukWNJ3GB9mf yN6yhibl7X0G4rlCb1nUI2NcYRo7BGshWVlrfO5b8Iq32VIOQAOY1liNOOqJ KYEWdlerHMY4lSkNSdv7Iu66IwaNZ10qRyVxqj+Hn1eMkoeR90.QiAst57qq ZtbXygWmTM8pzrEWVvmVoFVPHiI9bAzv5Ww35WgQiAAus4Co9hptaMW8IFMJ 3sxS8uO+Y0aEaN2AnSREO3EPKAHJv6.TLKRhI.I.QB8L.MeYtP1rEFf6FFf1 ACniCCpWof5WQfChBhQRR0nyCFMIIawSARDB4DdgsPBxFHANlFSgQrS.WfwV hKoYtAU32HFmO1P5coUi+P03U4eLkGfQf.DAXK1g8t5TDS4oAKc9.gXC.NwH 6xUIUEo2Vie9.69vJdUQdf8.Fw6tgZ.LkanPpA30SUCqJewhk7cNdoGQAw5w kx9AYp8imraVrb7GSmwyWuLIiGLOO3hkoKtppVh4YISVxCfhCkbGuH.DbwL9 5pqZNgX+xoIxqP7WaiyG4cCNFiH0ehkvMAG1oFbtjTDz+FaLnTcDih+ZjTDA 4c.JjRZAPCSRQD+GEqAF.vuRXEQHcCqHwmyVfY3SKhP8tBEkn73DB9+.sHRn 2cD0.XJGQ8LsHByYzhZFWJCnuJ3Esa5PfwvM++BwYxl8HpTnfKpJRxJmmWrR .Ak7pVDnVllwmlecV0iTbLP+y+oECUDovQwphnHSmAS5YC1IKlluLuPLl.AP Bndqsjr1bvqRmMimssZ78fIYWfY79vRvAvRDVx5hvZknCjU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