Forums > Jitter

capture objects with other captured texture


wk
February 9, 2006 | 12:26 am

hello,

sorry for bothering again, but seems textures are a bit nasty for me,
also didn`t find it well documented,

i`m trying to capture the whole rendering of points with texture made
from capturing
.gl.gridshpape,
when bind to other texture the previous texturing disappears,
it sounds a bit complicated probably,
so please find example patch attached which i hope is more clear,

thanks,
wojciech

max v2;
#N vpatcher 300 141 1074 675;
#P window setfont "Sans Serif" 9.;
#P newex 347 80 48 196617 loadbang;
#P message 347 110 156 196617 clear , paintoval 0 0 49 49 , bang;
#P newex 347 130 99 196617 jit.lcd 4 char 50 50;
#P message 327 339 61 196617 capture out;
#P message 328 363 53 196617 capture 0;
#P message 126 327 53 196617 texture 0;
#P newex 271 466 160 196617 jit.gl.videoplane ihu @texture out;
#P newex 269 439 136 196617 jit.gl.texture ihu @name out;
#P message 15 197 142 196617 point_sprite 1 , point_size 50;
#P message 47 330 34 196617 reset;
#P user com 411 367 239 196617 6;
#K set 0 25441 28788 30066 25888 28518 26112;
#K end;
#P newex 86 266 48 196617 loadbang;
#P newex 309 172 281 196617 jit.gl.texture ihu @name circle_gl @dim 50
50 @rectangle 0;
#P message 86 297 307 196617 reset , drawmatrix points points ,
texture circle_gl , point_size 50;
#P newex 181 151 85 196617 jit.matrix points;
#P newex 181 77 69 196617 qmetro 1000;
#P newex 181 126 126 196617 jit.expr @expr in[0]*2-1;
#P newex 181 102 113 196617 jit.noise 3 float32 100;
#P newex 76 114 61 196617 t b b erase;
#P newex 76 163 81 196617 jit.gl.render ihu;
#P toggle 76 49 15 0;
#P newex 76 75 51 196617 qmetro 2;
#P newex 86 429 74 196617 jit.window ihu;
#P user com 411 338 239 196617 24;
#K set 0 25441 28788 30066 25888 24942 25632 30067 25888 24947 8289
8308 25976 29813 29285 8294 28530 8310 26980 25967 28780 24942 25856
8232 29696;
#K end;
#P newex 86 388 150 196617 jit.gl.sketch ihu @color 1 1 1 1;
#P connect 13 0 16 0;
#P connect 4 0 3 0;
#P connect 3 0 6 0;
#P connect 6 2 5 0;
#P connect 6 0 5 0;
#P connect 16 0 5 0;
#P connect 13 0 11 0;
#P connect 21 0 0 0;
#P connect 20 0 0 0;
#P connect 19 0 0 0;
#P connect 11 0 0 0;
#P connect 15 0 0 0;
#P connect 4 0 9 0;
#P connect 9 0 7 0;
#P connect 7 0 8 0;
#P connect 6 1 10 0;
#P connect 8 0 10 0;
#P connect 22 0 12 0;
#P connect 24 0 23 0;
#P connect 23 0 22 0;
#P pop;


Viewing 1 post (of 1 total)