multiple gridshapes/videoplanes within one drawing context/jit.window


    Dec 19 2009 | 7:51 pm
    i'm sure this is simple, i'm not very experienced with jitter, i'm just confused as to the naming protocols of jit.gl.render/jit.gl.gridshape/jit.gl.videoplane and how to put two into one window if the names have to be the same to transfer the data.

    • Dec 19 2009 | 11:04 pm
      You don't need to "name" the gridshapes, just have multiple jit.gl.gridshape objects that draw to the same jit.gl.render, which does need a name. So the gridshape objects draw into the named jit.gl.render context. Same for the videoplanes.
      jit.gl.render foo
      has within it
      jit.gl.gridshape foo @shape sphere
      jit.gl.gridshape foo @shape cylinder
      etc...
      each are unique objects in the single jit.gl.render scene.
    • Jun 19 2010 | 7:28 pm
      I'm having this problem too. I have multiple shapes in the same named drawing context. When I scale, position or rotate them, the new positions do get drawn but the old ones don't get erased. It's not until I esc-fullscreen that the window displays (what I think) should be there. Here's what i mean...
    • Jun 19 2010 | 7:41 pm
      this works for me:
    • Jun 19 2010 | 8:40 pm
      you have only provided 3 values for your gl.render's erase_color attribute, therefore the fourth value defaults to 0. this fourth value is alpha, and setting to 0 basically means nothing is erased.
      set your erase_color to 1. 1. 1. 1.