dstdim multi screen

Apr 11, 2008 at 10:19am

dstdim multi screen

i’m trying to figure out how to use dstdimstart and dstdimend to slide a small image fluidly from one jit.window to another (using named matrices). as the small image approches the borders it squishes up, the dstdims don’t allow you to specify start and end dims that go beyond the frame of the main matrix. any suggestions for keeping the original shape of the small image as it passes from one screen to another? hope my question is clear… thanks in advance.

#36862
Apr 11, 2008 at 1:05pm

great! thanks for the tip. i really haven’t yet dipped into the opengl stuff. i’ll check it out.
jeff

#126876
Apr 11, 2008 at 5:34pm

here’s one simple way to do this to get you started, assuming i understand what you’re trying to do.

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 67 254 189 196617 jit.window foo2 @rect 370 60 690 320;
#P newex 468 197 27 196617 – 2.;
#P newex 454 170 92 196617 scale 0 127 -2. 4.;
#P user hslider 454 144 18 128 128 1 0 0;
#N vpatcher 679 69 1164 489;
#P inlet 223 245 15 0;
#P window setfont “Sans Serif” 9.;
#P hidden newex 169 357 104 196617 bgcolor 255 230 230;
#P flonum 326 234 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 290 234 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 254 234 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 254 265 95 196617 pak position 0. 0. 0.;
#P flonum 349 174 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 313 174 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 277 174 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 241 174 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 241 205 102 196617 pak rotate 0. 0. 0. 0.;
#P flonum 301 116 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 265 116 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 229 116 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 229 147 85 196617 pak scale 0. 0. 0.;
#P outlet 19 339 15 0;
#P fasten 10 0 0 0 259 308 24 308;
#P fasten 5 0 0 0 246 243 24 243;
#P fasten 1 0 0 0 234 212 24 212;
#P fasten 2 0 1 1 234 139 259 139;
#P connect 15 0 11 0;
#P fasten 6 0 5 1 246 197 269 197;
#P fasten 3 0 1 2 270 139 284 139;
#P fasten 11 0 10 1 259 257 287 257;
#P fasten 7 0 5 2 282 197 292 197;
#P fasten 4 0 1 3 306 139 309 139;
#P fasten 8 0 5 3 318 197 315 197;
#P fasten 12 0 10 2 295 257 315 257;
#P fasten 9 0 5 4 354 197 338 197;
#P fasten 13 0 10 3 331 257 343 257;
#P pop;
#P newobj 497 242 108 196617 p viewing_transforms;
#P newex 487 270 201 196617 jit.gl.videoplane foo2 @transform_reset 2;
#B color 5;
#P newex 144 205 88 196617 jit.gl.render foo2;
#P newex 144 118 66 196617 t b b erase b;
#N vpatcher 679 69 1164 489;
#P inlet 220 240 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 0;
#P hidden newex 169 357 104 196617 bgcolor 255 230 230;
#P flonum 326 234 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 290 234 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 254 234 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 254 265 95 196617 pak position 0. 0. 0.;
#P flonum 349 174 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 313 174 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 277 174 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 241 174 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 241 205 102 196617 pak rotate 0. 0. 0. 0.;
#P flonum 301 116 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 265 116 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 229 116 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 229 147 85 196617 pak scale 0. 0. 0.;
#P outlet 19 339 15 0;
#P fasten 1 0 0 0 234 212 24 212;
#P fasten 5 0 0 0 246 243 24 243;
#P fasten 10 0 0 0 259 308 24 308;
#P fasten 2 0 1 1 234 139 259 139;
#P connect 15 0 11 0;
#P fasten 6 0 5 1 246 197 269 197;
#P fasten 3 0 1 2 270 139 284 139;
#P fasten 11 0 10 1 259 257 287 257;
#P fasten 7 0 5 2 282 197 292 197;
#P fasten 4 0 1 3 306 139 309 139;
#P fasten 8 0 5 3 318 197 315 197;
#P fasten 12 0 10 2 295 257 315 257;
#P fasten 9 0 5 4 354 197 338 197;
#P fasten 13 0 10 3 331 257 343 257;
#P pop;
#P newobj 297 242 108 196617 p viewing_transforms;
#P newex 285 270 201 196617 jit.gl.videoplane foo1 @transform_reset 2;
#B color 5;
#P flonum 360 98 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 360 118 42 196617 rate $1;
#P message 420 98 83 196617 read dishes.mov;
#P newex 285 155 103 196617 jit.qt.movie 320 240;
#B color 5;
#P newex 37 231 183 196617 jit.window foo1 @rect 40 60 360 320;
#P newex 29 204 88 196617 jit.gl.render foo1;
#P user jit.fpsgui 83 143 60 196617 0;
#P newex 29 117 66 196617 t b b erase b;
#P toggle 29 66 15 0;
#P newex 29 92 57 196617 qmetro 20;
#P comment 454 129 136 196617 slide movie across windows;
#P fasten 13 1 7 0 167 145 290 145;
#P connect 18 0 12 0;
#P connect 18 0 19 0;
#P connect 7 0 11 0;
#P connect 7 0 15 0;
#P connect 17 0 18 0;
#P connect 19 0 16 0;
#P connect 16 0 15 0;
#P connect 12 0 11 0;
#P connect 1 0 3 0;
#P fasten 1 0 13 0 34 113 149 113;
#P connect 13 2 14 0;
#P connect 13 0 14 0;
#P connect 3 2 5 0;
#P connect 3 0 5 0;
#P connect 10 0 9 0;
#P fasten 8 0 7 0 425 145 290 145;
#P fasten 9 0 7 0 365 145 290 145;
#P connect 3 3 4 0;
#P connect 2 0 1 0;
#P window clipboard copycount 21;

#126877
Apr 11, 2008 at 5:57pm

perfect! that’s exactly it.
i had almost gotten it to work but yours is just right.
thanks a bunch.

#126878
Apr 11, 2008 at 8:04pm

I’m wondering how could it be in a unique screen-scene but the patch is funny:-)

#126879
Apr 11, 2008 at 9:24pm

#126880

You must be logged in to reply to this topic.