simple dstdim explanation?

May 29, 2006 at 4:22pm

simple dstdim explanation?

Hello,

dstdim still confuses me, slightly.

Here is an example of a very simple patch that I thought would flip a
matrix horizontally using only dstdim, but it doesn’t. Can someone
please explain why?

Thanks,
Evan

#26208
May 29, 2006 at 4:40pm

hi evan, patch is missing…

-thijs

#77958
May 29, 2006 at 4:41pm

oops forgot the patch

max v2;
#N vpatcher 768 630 1523 1070;
#P origin 0 -3;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 100 256 203 196617 dstdimstart 160 120 , dstdimend 320 239;
#P message 101 234 203 196617 dstdimstart 319 120 , dstdimend 160 239;
#P window linecount 2;
#P newex 61 297 339 196617 jit.matrix foo 4 char 320 240 @dstdimstart
319 120 @dstdimend 160 239 @usedstdim 1;
#P window linecount 1;
#P message 121 152 39 196617 time 0;
#P toggle 24 87 15 0;
#P newex 24 111 50 196617 metro 22;
#P message 61 151 30 196617 read;
#P newex 61 370 232 196617 jit.window smacka @size 320 240 @fsmenubar 1;
#P newex 61 180 105 196617 jit.qt.movie 320 240;
#P window linecount 3;
#P comment 323 234 100 196617 why do these not flip the image
horizontally?;
#P connect 5 0 4 0;
#P connect 3 0 1 0;
#P connect 4 0 1 0;
#P connect 6 0 1 0;
#P connect 9 0 7 0;
#P connect 8 0 7 0;
#P connect 1 0 7 0;
#P connect 7 0 2 0;
#P pop;

#77959
May 29, 2006 at 4:52pm

Don;t know…should work. Try this one…it does work:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 160 316 177 196617 srcdimstart 319 0 , srcdimend 0 239;
#P message 161 294 177 196617 srcdimstart 0 0 , srcdimend 319 239;
#P window linecount 2;
#P newex 121 357 341 196617 jit.matrix foo 4 char 320 240 @dstdimstart
160 120 @dstdimend 319 239 @usedstdim 1 @usesrcdim 1 @srcdimstart 319
0 @srcdimend 0 239;
#P window linecount 1;
#P message 181 212 39 196617 time 0;
#P toggle 84 147 15 0;
#P newex 84 171 50 196617 metro 22;
#P message 121 211 30 196617 read;
#P newex 121 430 232 196617 jit.window smacka @size 320 240 @fsmenubar 1;
#P newex 121 240 105 196617 jit.qt.movie 320 240;
#P window linecount 3;
#P comment 383 294 100 196617 why do these not flip the image horizontally?;
#P connect 7 0 2 0;
#P connect 1 0 7 0;
#P connect 8 0 7 0;
#P connect 9 0 7 0;
#P connect 6 0 1 0;
#P connect 4 0 1 0;
#P connect 3 0 1 0;
#P connect 5 0 4 0;
#P window clipboard copycount 10;

#77960
May 30, 2006 at 10:18am

Yes, it does – but you added the srcdim messages. I was deliberately
trying to avoid them – I guess you can’t?

#77961

You must be logged in to reply to this topic.