Forums > Jitter

drawto and automatic 0 don't work together? Now they do!

November 10, 2006 | 2:57 am

Ok folks,
Here’s a workaround (not that bad) that solves the @automatic 0 /
drawto issue. you have to tell jit.gl.render to "updatecleints" after
setting drawto before drawing:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 119 252 41 196617 r draw;
#N vpatcher 20 74 358 247;
#P window setfont "Sans Serif" 9.;
#P message 79 96 33 196617 draw;
#P window linecount 0;
#P newex 161 121 41 196617 s draw;
#P message 161 97 77 196617 drawto drawto;
#P window linecount 1;
#P newex 50 50 128 196617 t b b updateclients b erase;
#P inlet 50 30 15 0;
#P outlet 50 83 15 0;
#P connect 1 0 2 0;
#P fasten 2 4 0 0 171 81 55 81;
#P fasten 2 2 0 0 113 77 55 77;
#P connect 2 0 0 0;
#P connect 2 1 5 0;
#P fasten 2 3 3 0 142 89 166 89;
#P fasten 5 0 4 0 84 117 166 117;
#P connect 3 0 4 0;
#P pop;
#P newobj 26 118 42 196617 p Draw;
#P window linecount 2;
#P newex 119 275 326 196617 jit.gl.gridshape @shape torus @color 1 0 0
1 @position 0 0 -3 @lighting_enable 1 @blend_enable 1 @smooth_shading
1 @automatic 0;
#P toggle 128 59 15 0;
#P window linecount 1;
#P message 128 79 68 196617 fullscreen $1;
#N vpatcher 30 89 166 253;
#P window setfont "Sans Serif" 9.;
#P newex 50 71 35 196617 sel 27;
#P newex 50 50 40 196617 key;
#P outlet 50 93 15 0;
#P connect 1 0 2 0;
#P connect 2 0 0 0;
#P pop;
#P newobj 128 39 33 196617 p Esc;
#P newex 128 97 165 196617 jit.window drawto @depthbuffer 1;
#P toggle 26 78 15 0;
#P newex 26 97 57 196617 qmetro 30;
#P newex 26 140 100 196617 jit.gl.render drawto;
#P connect 2 0 1 0;
#P connect 1 0 8 0;
#P connect 8 0 0 0;
#P connect 9 0 7 0;
#P connect 4 0 6 0;
#P connect 6 0 5 0;
#P connect 5 0 3 0;
#P window clipboard copycount 10;


November 12, 2006 | 12:56 am

Quote: wesley.hoke@gmail.com wrote on Fri, 10 November 2006 03:57
—————————————————-
> Ok folks,
> Here’s a workaround (not that bad) that solves the @automatic 0 /
> drawto issue. you have to tell jit.gl.render to "updatecleints" after
> setting drawto before drawing:

Yep, works! Thanks for finding out Wesley!! Great!

Mattijs


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