arrange Jit.gl.videoplane in grid


    Aug 31 2019 | 12:10 pm
    I have 20 jit.gl.videoplane objects and would like to arrange them in rows and columns creating the appropriate size for each. Is there an easy way to do this? I haven't had any luck so far. Both the sizing and the arrangement have me stumped right now. I have a certain aspect ratio I'd like for the videoplanes but again I am not sure how to incorporate it.
    I'd like to be able to have either 4x5 or 5x4 arrangement. I am still using Max 7 at the moment (if that makes a difference).
    Thanks in advance.

    • Aug 31 2019 | 5:13 pm
      Take a look at jit.gl.multiple
    • Aug 31 2019 | 5:17 pm
      I will have another look at jit.gl.multiple but I was under the impression I can only have 1 texture for it. I need a different image for each videoplane...
    • Aug 31 2019 | 5:49 pm
      No you can texture each plane individually. Just pass in a list of named textures for the @texture attribute
    • Aug 31 2019 | 8:22 pm
      Just revisited the help file. Seems to be what I need. Thanks!
    • Aug 31 2019 | 9:06 pm
      There are many ways one could achieve the intended result: many individual instances, jit.gl.multiple, or even poly~. In any of them, though, you have to find a way to automate the calculation of the size and position of each plane... Here's an example using poly~ and jit.gl.cornerpin instead of jit.gl.videoplane (jit.gl.cornerpin lets you define the 4 coordinates of the plane, while jit.gl.videoplane only lets you define position and scale).
    • Aug 31 2019 | 9:11 pm
      Very cool thanks. I haven't used cornerpin before.
    • Apr 29 2020 | 7:23 am
      Pedro that patch is fantastic, thanks so much for sharing it!
    • Apr 29 2020 | 10:22 am
      Thank you, glad I could be useful!