jit.gl.gridshape to jit.matrix for feedback effect
I would like to "write" the output from a gridshape object in a matrix to process with matrix tools then create a feedback effect. I tried Peter Elsea’s patch with the matrixoutput set to 1 but it doesn’t work and so does the feedback loop. The idea would be to work on textures over a movie background.
Here’s the simple patch :
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 1286.3ocyZs0iiZCF84jeEtnJUo1zQXaLP5SoOz266UqhbBdR7T.SMNyktZ+ uWiMrMyNjcblfsP4lv.liO78c9tP97xEQ6DOyZi.+F3u.KV74kKVXFpafE8a uHph979RZq4vh1KppX0pnU18oXOqLiyqAG4s.0IkPxokq.+ISwjf+nrkQAsL kdWGYfJpRxeVbR0bRATB.Dr6jZEfq.EBVa8Oo.OIj+M3HSx.+vv0njWy1KNU atPn9AqOUomlR8D2MZb+n7BCXD6d3WQICm+8hZUMshY10u2gty2y8z8l8fGF SdXmYJuK9ripk+uliBh95vZDvqG..revFpZ+Qd8gsR1dkkWIDr9b.4I2QVAP oYcaf0CA9T2o7kkK69Zkiz+Cb0cMOwqKDOEMJSLvO1gTuzvrnHJZk9C3Sukn fvnqbEAQIcKhjLyO4cLEHM9CthpYOoQwarmjfpwWfvKt.GcwE6lUv6c+M9xr AFB6tyBI4c7.x98DyFc21s9N.L39RAUgQ5Kh98UZEnmns1I5h1Cnogw9N1On DigCL23K.w2FkUwZaoGXugydjVB9Qn88TXJkjLMDC5xDSBxvHnLiKUVpkk9f 7h1LQecuR6CisUmowNZ8gwoAGrOZnR83Z8+srZ5tR14dP2nsy.EkXDUIwd1a ScjN8dX3T+6hkYDkPqM9VYDeQShFvF8me1CjD16taXrwCCYUtyvdlj9EOPRH uSR8h0CjDw+NbfjuFhacZLfj3gfbXn2cAGrtfVYbsCoOhxMIg1PD+6qgLtWI DiADFYRYJehIi3IgL7uvCRmyLw2jQknfMQo9ffAiRxMpMjraJ0muiLygx6NR qKJYfCUfMTc4pakBEUw.vIqfp0dWaAZ0VH8RKY9RTVyVOxKXhlRZMa5Ugg49 WE1VvMAZrqVeaw38Q02YWa02Da.kDX17u56T+W8ceCURxlfpuujTpjQKlD9v +wYSRPmwGXhuzQ+GcFahG4L+khFDGJwAbtUGE5sjaokMG6JDttvC7TvpAnWD MG5wvMGj7h1izFFXyqZVbLXic31FS2g2XXy99K.ffME7J.It68lFQ4KaMo+. u5n5NP34AqAYXiuLwe8TzFKSmJzUxRltCcI9Iy67SJ9rRRy8Rc6sWJB3HOpA +2NGnMXeei2wwdzATpcqXxI1jfDJShXCOs1KDjBrS+hIosWHUX76wMC+ZmiQ 6tZfHp0FM7zaqvAk3vgR1UlXDu643MVGYbo4wW2hDtdX4M8FCZDJEf+uIkNt 5uXa08eE1VNwVxH41hnPUJ4I9GNi3tS2RhmEgOZj1NDfxCsO7t01dbhxlEzh QdX6dQoPNFqrNPZD88U.lNOLVJouvFiORh8NejfVeVyofW3oNYfr4eqv27Op vLici+ZVpUbRteXAOz3HchtCq7BVqhWSUbQ8YGD4UGyQdQAq9bIxBdampoge hG81kyvA4.b592CDJ7D6.dPACNtvN3.BmbGvSdvfS9r5dU2yt+8uYoClqqXL H3wEimuAzdEOt3ZACm0SxqtSLNbRCJZlOxxcnAMaPiwowIYvv3YgcRVNb1NN gGX3TBwPWUBCDdbgdBWPz4UFXHhKQQCH8fmY3ANubtf4thmvHFBScAOgyYGR lY3AOuR6wM7jEN73RVpePzXqVl1z7HS11OkFfDUQePXJ4OckYSdscSSA5QR1 i7gi2d.TotdcktX8SRao+OmmFsr657kk+G.VkK8A -----------end_max5_patcher-----------
Thanks for your help !
sorry, it’s not clear what you are trying to do.
it looks like your mixing geometry matrices (those emanating from a gl.gridshape) with image matrices (from qt.movie or other source).
the dimensions, planecount and type of these matrix sources are usually very different and incompatible.
well, that’s more or less what I thought. This patch is just a simplified part of a much bigger patch where I use a lot the fourth argument of the erase_color (1. 1. 1.and 0. to 1. for the 4th number) attribute of the jit.render object to create some "blur" or "feedback".
The visual artist I work with would like to project the "sound-altered" moving pictures (see : http://nicolascanot.tumblr.com/ for an idea of the pictures) produced by this patch, superimposed on fixed pictures (prepared photographs in Photoshop/InDesign) using only one VP.
The problem is that, when doing so (which works when using the videoplane + alphablend objects), the "erase_color feedback" doesn’t work anymore so I try to find some solutions to create feedback in the patch "before" the "GL picture" is mixed with the photographs.
Maybe the solution is simply to use two VPs unless there’s some solutions to remove the (white, in this case) background of the jit.render object (I mean, working with transparencies) while keeping the erase_color 4th attribute functional (which seems contradictory !).
Not sure it’s more clear now but it’s not easy to explain…
you can overlay two textures by creating to jit.gl.videoplanes @depth_enable 0 @blend_enable 1
you control the order with the @layer attribute.
you can change the blend technique with the @blend attribute.
check out the following example patch that demonstrates how to use gl.node and jit.gl.pix to create the erase_color smearing trick with a captured texture:
It looks like the perfect tool !!
Just have to modify the patch from the beginning now…
Thanks Rob !
Forums > Jitter