cyclops with gl.gridshape

May 24, 2010 at 5:46pm

cyclops with gl.gridshape

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.

  1. _boxt.maxpat
May 24, 2010 at 8:24pm

your best option for analyzing the contents of an opengl scene as a jitter matrix, is probably

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.

May 24, 2010 at 10:17pm

thanks, trying asyncread now

May 24, 2010 at 11:50pm

May 24, 2010 at 11:53pm

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

  1. _boxt.maxpat

You must be logged in to reply to this topic.