Forums > Jitter

am I doing this right?

December 7, 2006 | 7:21 pm

Hi,

I’m resending a simplified version of my patch in the hopes that it
might make more sense to someone. (sorry but I’m really stuck)

Basically I’m trying to capture an image from the render and then load
that image back into a jit.qt.movie. I thought it would be fairly
simple – I figured my only problem would be an incorrect render order
or setting the depth buffer attribute properly. Nothing seems to
work.

So here’s a simplified version of what I am doing, hopefully it makes
sense to someone.

Bart

max v2;
#N vpatcher 293 60 1077 814;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 392 335 284 196617 load the screen capture back into the player>>>;
#P comment 218 103 156 196617 < < #P message 158 396 30 196617 read;
#P newex 87 395 68 196617 prepend read;
#N counter;
#X flags 0 0;
#P newobj 198 129 66 196617 counter;
#P button 198 103 15 0;
#P newex 633 341 51 196617 zl slice 1;
#P newex 633 320 93 196617 route exportimage;
#P newex 181 231 27 196617 int;
#P newex 181 271 104 196617 prepend exportimage;
#P newex 181 251 116 196617 sprintf scape_0%ld tiff;
#P newex 310 182 41 196617 t b b b;
#P newex 340 298 303 196617 jit.matrix @usesrcdim 1 @srcdimstart 0 599
@srcdimend 799 0;
#P message 383 217 125 196617 reset , glreadpixels vessel;
#P newex 360 240 154 196617 jit.gl.sketch blend @automatic 0;
#P newex 340 261 161 196617 jit.matrix vessel 4 char 800 600;
#P newex 71 447 95 196617 jit.gl.texture blend;
#P newex 127 493 47 196617 r draw1;
#P newex 71 519 185 196617 jit.gl.videoplane blend @blend_enable 1;
#P newex 71 424 105 196617 jit.qt.movie 800 600;
#P toggle 92 624 15 0;
#P message 92 644 68 196617 fullscreen $1;
#P newex 92 662 155 196617 jit.window blend @size 800 600;
#P toggle 10 29 42 0;
#P newex 10 75 51 196617 qmetro 2;
#P newex 10 175 91 196617 jit.gl.render blend;
#P newex 92 604 35 196617 sel 27;
#P newex 92 583 40 196617 key;
#P newex 81 155 47 196617 s draw1;
#P newex 10 120 66 196617 t b erase b b;
#P comment 190 396 100 196617 < #P connect 7 0 6 0;
#P connect 6 0 1 0;
#P fasten 1 1 5 0 33 153 15 153;
#P connect 1 0 5 0;
#P connect 1 3 11 0;
#P connect 27 0 11 0;
#P fasten 28 0 11 0 163 418 76 418;
#P connect 11 0 14 0;
#P fasten 13 0 12 0 132 515 76 515;
#P connect 14 0 12 0;
#P connect 1 2 2 0;
#P fasten 24 0 27 0 638 366 92 366;
#P connect 3 0 4 0;
#P connect 4 0 10 0;
#P connect 10 0 9 0;
#P connect 9 0 8 0;
#P fasten 19 1 22 0 330 208 186 208;
#P connect 22 0 20 0;
#P connect 20 0 21 0;
#P connect 25 0 26 0;
#P connect 26 0 22 1;
#P fasten 26 0 19 0 203 158 315 158;
#P connect 19 2 15 0;
#P connect 15 0 18 0;
#P fasten 21 0 18 0 186 293 345 293;
#P fasten 17 0 16 0 388 236 365 236;
#P connect 18 1 23 0;
#P connect 23 0 24 0;
#P pop;


bartwoodstrup.com
vodstrup.com


December 8, 2006 | 5:05 am

Nope, I wasn’t! I had forgotten about the attribute @ortho 2 in the render…

On 12/7/06, bart woodstrup wrote:
> Hi,
>
> I’m resending a simplified version of my patch in the hopes that it
> might make more sense to someone. (sorry but I’m really stuck)
>
> Basically I’m trying to capture an image from the render and then load
> that image back into a jit.qt.movie. I thought it would be fairly
> simple – I figured my only problem would be an incorrect render order
> or setting the depth buffer attribute properly. Nothing seems to
> work.
>
> So here’s a simplified version of what I am doing, hopefully it makes
> sense to someone.
>
>
> Bart
>
>
> max v2;
> #N vpatcher 293 60 1077 814;
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P comment 392 335 284 196617 load the screen capture back into the player>>>;
> #P comment 218 103 156 196617 < < > #P message 158 396 30 196617 read;
> #P newex 87 395 68 196617 prepend read;
> #N counter;
> #X flags 0 0;
> #P newobj 198 129 66 196617 counter;
> #P button 198 103 15 0;
> #P newex 633 341 51 196617 zl slice 1;
> #P newex 633 320 93 196617 route exportimage;
> #P newex 181 231 27 196617 int;
> #P newex 181 271 104 196617 prepend exportimage;
> #P newex 181 251 116 196617 sprintf scape_0%ld tiff;
> #P newex 310 182 41 196617 t b b b;
> #P newex 340 298 303 196617 jit.matrix @usesrcdim 1 @srcdimstart 0 599
> @srcdimend 799 0;
> #P message 383 217 125 196617 reset , glreadpixels vessel;
> #P newex 360 240 154 196617 jit.gl.sketch blend @automatic 0;
> #P newex 340 261 161 196617 jit.matrix vessel 4 char 800 600;
> #P newex 71 447 95 196617 jit.gl.texture blend;
> #P newex 127 493 47 196617 r draw1;
> #P newex 71 519 185 196617 jit.gl.videoplane blend @blend_enable 1;
> #P newex 71 424 105 196617 jit.qt.movie 800 600;
> #P toggle 92 624 15 0;
> #P message 92 644 68 196617 fullscreen $1;
> #P newex 92 662 155 196617 jit.window blend @size 800 600;
> #P toggle 10 29 42 0;
> #P newex 10 75 51 196617 qmetro 2;
> #P newex 10 175 91 196617 jit.gl.render blend;
> #P newex 92 604 35 196617 sel 27;
> #P newex 92 583 40 196617 key;
> #P newex 81 155 47 196617 s draw1;
> #P newex 10 120 66 196617 t b erase b b;
> #P comment 190 396 100 196617 < > #P connect 7 0 6 0;
> #P connect 6 0 1 0;
> #P fasten 1 1 5 0 33 153 15 153;
> #P connect 1 0 5 0;
> #P connect 1 3 11 0;
> #P connect 27 0 11 0;
> #P fasten 28 0 11 0 163 418 76 418;
> #P connect 11 0 14 0;
> #P fasten 13 0 12 0 132 515 76 515;
> #P connect 14 0 12 0;
> #P connect 1 2 2 0;
> #P fasten 24 0 27 0 638 366 92 366;
> #P connect 3 0 4 0;
> #P connect 4 0 10 0;
> #P connect 10 0 9 0;
> #P connect 9 0 8 0;
> #P fasten 19 1 22 0 330 208 186 208;
> #P connect 22 0 20 0;
> #P connect 20 0 21 0;
> #P connect 25 0 26 0;
> #P connect 26 0 22 1;
> #P fasten 26 0 19 0 203 158 315 158;
> #P connect 19 2 15 0;
> #P connect 15 0 18 0;
> #P fasten 21 0 18 0 186 293 345 293;
> #P fasten 17 0 16 0 388 236 365 236;
> #P connect 18 1 23 0;
> #P connect 23 0 24 0;
> #P pop;
>
>
>
>
> –
> bartwoodstrup.com
> vodstrup.com
>


bartwoodstrup.com
vodstrup.com


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