ive been working on a patch that involves gl.gridshape, and i’d like to implement sound as a secondary, so that the sound will respond to the position and color of the content of the visuals – that way i can focus on the visuals when using the patch. i think the jit.cyclops object would be a good solution, because it can analyze zones of a matrix, and color values. so i tried sending the gl.gridshape to a 4 char matrix and then eventually to the cyclops object, but the cyclops video window won’t respond like it does in the cyclops help patch. does anyone know if this is possible? or any other way to detect value changes in a gl.gridshape?
i’ve attached my patch without the cyclops object.
your best option for analyzing the contents of an opengl scene as a jitter matrix, is probably jit.gl.asyncread.
sending the values of gl.gridshape to a matrix, with @matrixoutput 1, sends the 3D world space values of that gridshape (color, normal, and texcoords), not the rasterized screen space color values.
another option is to use the @capture attribute, to render the gridshape into a named gl.texture, then send this gl.texture into a jit.matrix.
both of these options have pros and cons, and it’s hard to say which will be best for your needs without trying them out.
thanks, trying asyncread now
yep it works! thx very much! here’s the new patch, and it has a subpatcher called "detect" with the cyclops. but i haven’t implemented any msp yet
C74 RSS Feed | © Copyright Cycling '74