Setting a y value of 1 for jit.world size


    Mar 25 2015 | 2:12 pm
    Hello,
    I'm using Jitter to animate led strips. I was investigating the use of jit.world instead of jit.gl.render and can't seem to do what I want to do.
    I currently use a jit.window with a size of 40x1 which corresponds to the number of leds on my strip. I use jit.gl.asyncread to readback as a matrix and then send it to the led strip via the serial object. By setting the windows to 40x1 I get a nice 40x1 matrix from jit.gl.asyncread which is a 1:1 mapping with my input matrix.
    With jit.world whenever I try to set the y dimension to 1 the window seems to default to something bigger (50x28) Would there be a way to achieve this with jit.world ? This would be handy as I could just use output_matrix instead of jit.gl.asyncread to send the data to my leds.
    Thanks !

    • Mar 25 2015 | 3:40 pm
      jit.gl.asyncread is pretty overkill for this I think. If you use the to_texture message with jit.gl.render then you can send the output of jit.gl.render to a simple jit.gl.texture object.
      Why do you want to use jit.gl.world ??
    • Mar 25 2015 | 3:47 pm
      I was just curious to see if I could translate some old patches to use jit.world but I'm fine with using jit.gl.render.
      The asyncread method seems to work fine but I'll try texture output to see if there's a difference in performance.
      Thanks !