Forums > Jitter

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

December 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 and how to put two into one window if the names have to be the same to transfer the data.

December 19, 2009 | 11:04 pm

You don’t need to "name" the gridshapes, just have multiple objects that draw to the same, which does need a name. So the gridshape objects draw into the named context. Same for the videoplanes. foo

has within it foo @shape sphere foo @shape cylinder
each are unique objects in the single scene.

June 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…

— Pasted Max Patch, click to expand. —

June 19, 2010 | 7:41 pm

this works for me:

— Pasted Max Patch, click to expand. —
June 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.

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

Forums > Jitter