drawto and automatic 0 don't work together?


    Nov 07 2006 | 3:35 pm
    It seems like drawto and automatic 0 don't work together on a jit.gl.gridshape. Steps to reproduce are in the patch.
    Max 4.5.7, Jitter 1.5.2, confirmed for both Windows XP & Mac OSX
    I'm curios if anyone can explain this behaviour.
    Cheers,
    Mattijs

    • Nov 07 2006 | 4:03 pm
      Thanks Mattijs,
      When I saw the postings about this in the other thread, I noticed this
      as well. I was surprised that drawto and @automatic 0 didn't play
      well together. Anyway, the workaround for right now is to not use
      @automatic 0 abd use @layer instead or to have multiple instances of
      your objects.
      wes
      On 11/7/06, Mattijs Kneppers wrote:
      >
      > It seems like drawto and automatic 0 don't work together on a jit.gl.gridshape. Steps to reproduce are in the patch.
      >
      > Max 4.5.7, Jitter 1.5.2, confirmed for both Windows XP & Mac OSX
      >
      > #P window setfont "Sans Serif" 9.;
      > #P window linecount 1;
      > #P newex 185 83 56 9109513 loadmess 1;
      > #P newex 61 51 60 9109513 loadmess 1;
      > #P toggle 44 51 15 0;
      > #P newex 44 71 57 9109513 qmetro 40;
      > #P newex 44 92 74 9109513 t b b rnd1 erase;
      > #P newex 155 123 27 9109513 !- 1;
      > #P message 185 123 62 9109513 automatic $1;
      > #P toggle 185 105 15 0;
      > #P newex 53 158 29 9109513 gate;
      > #P newex 89 158 80 9109513 prepend drawto;
      > #P newex 53 184 350 9109513 jit.gl.gridshape @automatic 1 @shape plane @color 0. 0. 1. @rotatexyz 0. 24. 54.;
      > #P newex 44 254 154 9109513 jit.window rnd1 @depthbuffer 1;
      > #P newex 44 231 169 9109513 jit.gl.render rnd1 @camera 0. 0. 3.;
      > #P newex 97 205 87 9109513 jit.gl.handle rnd1;
      > #P comment 202 105 302 9109513 setting automatic off (and banging 'manually') stops rendering.. why?;
      > #P connect 7 0 9 0;
      > #P connect 7 0 8 0;
      > #P connect 14 0 7 0;
      > #P connect 10 2 5 0;
      > #P connect 10 1 6 1;
      > #P connect 1 0 4 0;
      > #P fasten 8 0 4 0 190 180 58 180;
      > #P connect 6 0 4 0;
      > #P fasten 5 0 4 0 94 180 58 180;
      > #P fasten 9 0 6 0 160 152 58 152;
      > #P connect 10 0 2 0;
      > #P connect 10 3 2 0;
      > #P connect 11 0 10 0;
      > #P connect 12 0 11 0;
      > #P connect 13 0 12 0;
      > #P window clipboard copycount 15;
      >
      > I'm curios if anyone can explain this behaviour.
      >
      > Cheers,
      > Mattijs
      > --
      > SmadSteck - http://www.smadsteck.nl
      > Interactive audiovisual sampling soft- and hardware
      >
      >
    • Nov 07 2006 | 4:49 pm
      @layer ?
      first time i heard of this, any example for its use out there?
      On 11/7/06, Wesley Smith wrote:
      >
      > Thanks Mattijs,
      > When I saw the postings about this in the other thread, I noticed this
      > as well. I was surprised that drawto and @automatic 0 didn't play
      > well together. Anyway, the workaround for right now is to not use
      > @automatic 0 abd use @layer instead or to have multiple instances of
      > your objects.
      >
      > wes
      >
      > On 11/7/06, Mattijs Kneppers wrote:
      > >
      > > It seems like drawto and automatic 0 don't work together on a
      > jit.gl.gridshape. Steps to reproduce are in the patch.
      > >
      > > Max 4.5.7, Jitter 1.5.2, confirmed for both Windows XP & Mac OSX
      > >
      > > #P window setfont "Sans Serif" 9.;
      > > #P window linecount 1;
      > > #P newex 185 83 56 9109513 loadmess 1;
      > > #P newex 61 51 60 9109513 loadmess 1;
      > > #P toggle 44 51 15 0;
      > > #P newex 44 71 57 9109513 qmetro 40;
      > > #P newex 44 92 74 9109513 t b b rnd1 erase;
      > > #P newex 155 123 27 9109513 !- 1;
      > > #P message 185 123 62 9109513 automatic $1;
      > > #P toggle 185 105 15 0;
      > > #P newex 53 158 29 9109513 gate;
      > > #P newex 89 158 80 9109513 prepend drawto;
      > > #P newex 53 184 350 9109513 jit.gl.gridshape @automatic 1 @shape plane
      > @color 0. 0. 1. @rotatexyz 0. 24. 54.;
      > > #P newex 44 254 154 9109513 jit.window rnd1 @depthbuffer 1;
      > > #P newex 44 231 169 9109513 jit.gl.render rnd1 @camera 0. 0. 3.;
      > > #P newex 97 205 87 9109513 jit.gl.handle rnd1;
      > > #P comment 202 105 302 9109513 setting automatic off (and banging
      > 'manually') stops rendering.. why?;
      > > #P connect 7 0 9 0;
      > > #P connect 7 0 8 0;
      > > #P connect 14 0 7 0;
      > > #P connect 10 2 5 0;
      > > #P connect 10 1 6 1;
      > > #P connect 1 0 4 0;
      > > #P fasten 8 0 4 0 190 180 58 180;
      > > #P connect 6 0 4 0;
      > > #P fasten 5 0 4 0 94 180 58 180;
      > > #P fasten 9 0 6 0 160 152 58 152;
      > > #P connect 10 0 2 0;
      > > #P connect 10 3 2 0;
      > > #P connect 11 0 10 0;
      > > #P connect 12 0 11 0;
      > > #P connect 13 0 12 0;
      > > #P window clipboard copycount 15;
      > >
      > > I'm curios if anyone can explain this behaviour.
      > >
      > > Cheers,
      > > Mattijs
      > > --
      > > SmadSteck - http://www.smadsteck.nl
      > > Interactive audiovisual sampling soft- and hardware
      > >
      > >
      >
    • Nov 07 2006 | 5:11 pm
      wes
    • Nov 07 2006 | 11:29 pm
      @layer was introduced in jitter 1.6 I believe.
      it is part of the GL group attributes. refer to the reference page
      file:///Applications/MaxMSP%204.6/patches/JitterReference/group-GL.html
      it determines the order in which objects are drawn.
      Once I discovered it, I prefer it over @automatic 0.
      Using layers is a more declarative approach to controlling rendering
      order,
      whereas @automatic 0 requires additional bang sequencing logic in
      your patch.
      in particular when I need to reorder the objects dynamically, @layer
      is very practical.
      -jennek
      On 7-nov-2006, at 15:49, yair reshef wrote:
      > @layer ?
      > first time i heard of this, any example for its use out there?
      >
      > On 11/7/06, Wesley Smith wrote:
      > Thanks Mattijs,
      > When I saw the postings about this in the other thread, I noticed this
      > as well. I was surprised that drawto and @automatic 0 didn't play
      > well together. Anyway, the workaround for right now is to not use
      > @automatic 0 abd use @layer instead or to have multiple instances of
      > your objects.
      >
      > wes
      >
      > On 11/7/06, Mattijs Kneppers wrote:
      > >
      > > It seems like drawto and automatic 0 don't work together on a
      > jit.gl.gridshape . Steps to reproduce are in the patch.
      > >
      > > Max 4.5.7, Jitter 1.5.2, confirmed for both Windows XP & Mac OSX
      >