Forums > Jitter

cyclops with gl.gridshape

May 24, 2010 | 5:46 pm

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

May 24, 2010 | 8:24 pm

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.


May 24, 2010 | 10:17 pm

thanks, trying asyncread now


May 24, 2010 | 11:50 pm


May 24, 2010 | 11:53 pm

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

Viewing 5 posts - 1 through 5 (of 5 total)