Forums > Jitter

erase render

August 19, 2008 | 3:20 pm

Hello
Is there a way to erase the window?

thkU

max v2;
#N vpatcher 291 171 935 829;
#P window setfont "Sans Serif" 9.;
#P newex 171 57 50 196617 uzi 1000;
#P newex 171 36 48 196617 loadbang;
#P button 73 97 15 0;
#P message 73 78 53 196617 jhfsdvhfg;
#P message 38 56 60 196617 clear , bang;
#P message 17 36 62 196617 erase , bang;
#P button 171 78 15 0;
#P newex 206 133 107 196617 jit.noise 3 float32 10;
#P newex 206 166 244 196617 jit.gl.mesh qwe @draw_mode points @point_size 30;
#P newex 95 145 50 196617 t b erase;
#P newex 95 169 86 196617 jit.gl.render qwe;
#P message 86 235 121 196617 name qwe , size 350 350;
#P user jit.pwindow 85 256 352 352 0 1 0 0 1 0;
#X name qwe;
#P connect 9 0 10 0;
#P connect 1 0 0 0;
#P connect 6 0 3 0;
#P connect 10 0 3 0;
#P connect 8 0 2 0;
#P connect 7 0 2 0;
#P fasten 3 1 2 0 140 165 100 165;
#P connect 3 0 2 0;
#P connect 11 0 12 0;
#P connect 12 0 6 0;
#P connect 6 0 5 0;
#P connect 5 0 4 0;
#P pop;


August 19, 2008 | 4:32 pm

setting your mesh to automatic 0, and then sending gl.render "erase, bang" does the trick. otherwise, every time you send the bang to render, mesh will draw itself.


August 19, 2008 | 5:07 pm

Ah yes, @automatic 0, of course. Thank you Rob.


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