Forums > Jitter

capture jit.gl.sketch to rectangular texture

March 3, 2009 | 2:45 am

I have an @capture in jit.gl.sketch. If I try to make the dims of the texture match the movie, the image gets really messed up (see attached).
On a macbook pro w/ ATI,RadeonX1600 256 MB OSX 10.4.
Is there something I’m missing or am I out of luck?

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 60 33 60 196617 loadmess 1;
#P newex 252 143 48 196617 loadbang;
#P comment 440 359 68 196617 doesn’t work;
#P comment 438 335 38 196617 works;
#P message 360 333 77 196617 dim 256 256 0;
#P message 363 359 77 196617 dim 320 240 0;
#P message 343 428 84 196617 dim 320 240 0;
#P newex 340 403 62 196617 prepend set;
#B color 5;
#P message 63 353 40 196617 getdim;
#P newex 57 237 48 196617 loadbang;
#P newex 290 70 60 196617 loadmess 1;
#N vpatcher 672 456 1083 719;
#P window setfont "Sans Serif" 9.;
#P newex 204 135 67 196617 r toalllayers;
#P newex 264 97 60 196617 r noeffects;
#P newex 151 98 54 196617 change -1;
#P newex 171 61 31 196617 != 0.;
#P toggle 214 66 15 0;
#P message 138 136 53 196617 enable $1;
#P window linecount 3;
#P newex 43 166 283 196617 jit.gl.videoplane Output @lighting_enable 0 @smooth_shading 1 @depth_enable 0 @blend_enable 1 @transform_reset 2 @layer 0 @color 1 1 1 1 @texture moviemix @enable 0;
#P window linecount 1;
#P newex 41 78 90 196617 pak color 1 1 1 1.;
#P inlet 155 40 15 0;
#P connect 8 0 2 0;
#P connect 1 0 2 0;
#P connect 3 0 2 0;
#P connect 0 0 1 4;
#P connect 7 0 1 4;
#P connect 4 0 3 0;
#P connect 6 0 3 0;
#P connect 5 0 6 0;
#P connect 0 0 5 0;
#P pop 1;
#P newobj 293 106 60 196617 p noeffects;
#P flonum 373 91 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user jit.pwindow 436 216 82 62 0 1 0 0 1 0;
#P message 253 164 83 196617 read dishes.mov;
#P newex 257 189 63 196617 jit.qt.movie;
#B color 5;
#P newex 256 217 197 196617 jit.gl.texture Output @name 1movtexture;
#B color 5;
#P message 59 265 33 196617 dump;
#N coll ;
#T flags 1 0;
#T 0 reset;
#T 1 moveto 0 0 0;
#T 2 glcolor 1 1 1 1;
#T 3 glbindtexture 1movtexture;
#T 4 plane 1 1;
#P newobj 56 288 53 196617 coll;
#P window setfont Arial 9.;
#P newex 57 217 80 131137545 jit.window Output;
#P newex 61 105 68 131137545 t b l b erase b;
#P toggle 60 60 15 0;
#P newex 60 84 55 131137545 metro 20;
#P newex 60 194 179 131137545 jit.gl.render Output @erase_color 0 0 0 1;
#P window setfont "Sans Serif" 9.;
#P newex 63 379 289 196617 jit.gl.texture Output @name moviemix @wrap mirroredrepeat;
#B color 5;
#P window linecount 2;
#P newex 56 313 261 196617 jit.gl.sketch Output @lighting_enable 0 @depth_enable 0 @blend_enable 1 @capture moviemix @blend_mode 6 1;
#B color 5;
#P comment 186 50 100 196617 trying to use glproctable;
#P connect 26 0 5 0;
#P connect 9 0 8 0;
#P connect 8 0 1 0;
#P connect 17 0 9 0;
#P connect 5 0 4 0;
#P connect 6 0 3 0;
#P connect 6 1 3 0;
#P connect 6 3 3 0;
#P connect 4 0 6 0;
#P connect 22 0 2 0;
#P connect 21 0 2 0;
#P connect 18 0 2 0;
#P connect 25 0 12 0;
#P connect 11 0 10 0;
#P connect 12 0 11 0;
#P connect 6 4 11 0;
#P connect 16 0 15 0;
#P connect 14 0 15 0;
#P connect 2 1 19 0;
#P connect 19 0 20 0;
#P connect 11 0 13 0;
#P window clipboard copycount 27;


March 3, 2009 | 3:23 am

possibly @rectangle on your gl.texture?


March 3, 2009 | 4:59 am

No, that didn’t help. @rectangle is 1 by default.


March 11, 2009 | 7:24 pm

it turns out that my ati x1600 256mb video card on my MacBook Pro doesn’t support rectangular textures with wrap as mirroredrepeat.
Darn it!


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