jit.gl.plato object

    Apr 06 2006 | 10:27 am
    Hello All,
    I am trying to create a cube where each of its plane is playing a
    different movie/image. I have read that I need to wrap the images
    after combine them in a matrix and then apply this to my cube. The
    problem I am having is, I don't know how I am going to re-set the
    dimension of this matrix fred, so that I can fit this open cube shape
    exactly in the matrix and wrap it properly to my cube.
    also I welcome any comments on optimization and everything literally!

    • Apr 06 2006 | 2:15 pm
      there are a few issues in your patch, let's sequence...
      - matrix fred is automatically being resized to qt.movie dimensions, because
      matrix by default adapts to input matrix dimensions. So, every fred should
      have @adapt 0 attribute.
      - but, with adapt 0, freds dims default to 1x1, so you have to properly
      initialize freds dimensions,type and planecount. According to dstdimends in
      your current freds, size of your fred should be 288x216, but because your
      method of texturing(and plato) requires square textures, fred should be at
      least 288 pixels wide, 288 px tall. Just add somewhere jit.matrix fred 4
      char 288 288.
      - this change in size will require you to adjust dstdim*, to move whole
      thing down a bit(middle row should be centered). Checkout picture in
      jit.gl.plato help patch, 'p texture_maps' subpatch, notice that images are
      square, and that 6 images for cube are centered in that square image.
      - as of optimization: remove all pwindows, never place them in 'processing
      ok, I have to admit that all this was just from looking at your patch, I
      didn't actually do the stuff I suggested. Instead, I created patch taking
      another approach, without the need to combine matrixes. This approach
      creates 6 videoplanes, and forms a cube. Same method can be used to generate
      cube by jit.gl.sketch, and numerous other cube recipes...
    • Apr 06 2006 | 7:03 pm
      wow, thanks nesa!
      I learned lots of new things both from your comments and your code.
      thanks again!