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.

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

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.

#181310
May 24, 2010 at 10:17pm

thanks, trying asyncread now

#181311
May 24, 2010 at 11:50pm

#181312
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

Attachments:
  1. _boxt.maxpat
#181313

You must be logged in to reply to this topic.