Forums > Jitter

apply FAQ help!

June 3, 2006 | 6:20 pm

i still have the problem to transfer a OpenGL scene into a quicktimemovie although i have read the
"How do I record OpenGL scenes to disk as a QuickTime movie using jit.qt.record?" section in FAQ!!

i have problems to apply one of three examples to the the patch Recipe 04: Asteroid Growth. no success, i tried all possibilities which seemed to be reasonable! can anybody help me?

max v2;
#N vpatcher 423 44 1127 518;
#P origin -16 0;
#P window setfont "Sans Serif" 9.;
#P hidden newex 508 437 106 196617 bgcolor 130 120 120;
#P newex 59 72 48 196617 r eraser;
#B color 5;
#P window linecount 7;
#P comment 392 141 100 196617 The growth matrix works by mixing a slightly magnified matrix in a feedback loop , which gives the appearance of outward motion.;
#P window linecount 1;
#P comment 68 99 100 196617 populated matrix;
#P flonum 528 182 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 506 199 32 196617 *~ 3;
#P window linecount 2;
#P comment 505 253 137 196617 open matrix-maker patch for matrix filling info.;
#P window linecount 1;
#P comment 561 159 82 196617 and turn on audio;
#P toggle 471 315 15 0;
#P toggle 491 353 15 0;
#P toggle 450 353 15 0;
#P newex 409 374 92 196617 pak poly_mode 0 0;
#P toggle 311 358 15 0;
#P message 311 375 96 196617 smooth_shading $1;
#P comment 474 71 119 196617 andrewb@cycling74.com;
#P comment 47 29 102 196617 < -- start rendering;
#P newex 31 136 103 196617 jit.xfade @xfade 0.9;
#P window linecount 3;
#P newex 43 182 160 196617 jit.matrix 1 float32 50 50 50 @usesrcdim 1 @srcdimstart 2 2 2 @srcdimend 47 47 47 @interp 1;
#P toggle 506 113 15 0;
#P window linecount 1;
#P message 553 113 37 196617 loop 1;
#P message 522 113 30 196617 open;
#N sfplay~ 1 120960 0 ;
#P newobj 506 150 44 196617 sfplay~;
#N vpatcher 278 432 735 820;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 62 169 29 196617 value;
#P window linecount 8;
#P comment 44 218 152 196617 Using Amplitude Modulation , the signals are outputing a randomly ramping range of 0-50 , the same as the dimensions of our matrix "rakk" in the main patcher. Thus , we are scrolling through the 3-D space , plotting points along the way.;
#P window linecount 1;
#P comment 145 162 19 196617 x;
#P comment 217 161 19 196617 y;
#P comment 288 161 19 196617 z;
#P newex 328 86 38 196617 *~ 25;
#P newex 328 62 51 196617 rand~ 30;
#P newex 383 61 44 196617 sig~ 25;
#P newex 260 157 27 196617 +~;
#P newex 300 40 51 196617 rand~ 80;
#P newex 300 108 38 196617 *~ 25;
#P inlet 44 169 15 0;
#P newex 203 88 38 196617 *~ 25;
#P newex 203 66 50 196617 rand~ 20;
#P newex 55 42 44 196617 sig~ 25;
#P newex 254 66 44 196617 sig~ 25;
#P newex 129 95 38 196617 *~ 25;
#P newex 129 74 50 196617 rand~ 80;
#P newex 188 157 27 196617 +~;
#P newex 116 159 27 196617 +~;
#P newex 178 42 50 196617 rand~ 50;
#P newex 101 42 55 196617 rand~ 200;
#P newex 178 110 38 196617 *~ 25;
#P newex 101 119 38 196617 *~ 25;
#N vpatcher 733 439 1149 680;
#P origin 0 14;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#N vpatcher 10 59 138 244;
#P window setfont "Sans Serif" 9.;
#P newex 6 127 40 196617 t clear;
#P window linecount 1;
#P newex 6 146 48 196617 s eraser;
#P newex 6 108 32 196617 sel 1;
#P newex 6 87 39 196617 < 0.01;
#P window linecount 0;
#P newex 6 65 69 196617 peakamp~ 20;
#P inlet 6 27 15 0;
#P connect 0 0 1 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 5 0;
#P connect 5 0 4 0;
#P pop;
#P newobj 6 59 41 196617 p clear;
#P window linecount 0;
#P comment 145 111 243 196617 The incoming "value" signal is used as a multiplier for a randomly ramping signal. In this way , the shape becomes responsive to sound , without having too linear a correlation.;
#P inlet 97 33 15 0;
#P window linecount 1;
#P newex 116 181 91 196617 jit.poke~ rakk 3 0;
#P newex 116 110 27 196617 *~;
#P newex 116 87 45 196617 rand~ 3;
#P inlet 45 33 15 0;
#P inlet 80 33 15 0;
#P inlet 62 33 15 0;
#P fasten 2 0 8 0 50 53 11 53;
#P connect 3 0 4 0;
#P connect 4 0 5 0;
#P fasten 2 0 4 1 50 65 138 65;
#P fasten 0 0 5 1 67 178 148 178;
#P fasten 1 0 5 2 85 171 175 171;
#P fasten 6 0 5 3 102 164 202 164;
#P pop;
#P newobj 44 198 226 196617 p writer;
#P window linecount 4;
#P comment 272 199 122 196617 Each of these signal paths represents the location along an axis of the given point;
#P connect 14 0 1 0;
#P connect 4 0 2 0;
#P fasten 11 0 6 0 60 143 121 143;
#P connect 6 0 1 1;
#P connect 8 0 9 0;
#P connect 9 0 2 1;
#P fasten 2 0 6 1 106 143 138 143;
#P connect 5 0 3 0;
#P fasten 10 0 7 0 259 146 193 146;
#P connect 7 0 1 2;
#P connect 12 0 13 0;
#P fasten 3 0 7 1 183 146 210 146;
#P connect 13 0 3 1;
#P fasten 18 0 17 0 388 144 265 144;
#P connect 17 0 1 3;
#P fasten 15 0 17 1 305 144 282 144;
#P connect 16 0 15 0;
#P connect 19 0 20 0;
#P connect 20 0 15 1;
#P pop;
#P newobj 506 219 82 196617 p matrix-maker;
#P user ezdac~ 564 182 608 215 0;
#P toggle 218 359 15 0;
#P message 218 376 92 196617 lighting_enable $1;
#P newex 185 318 70 196617 prepend mode;
#P user ubumenu 185 297 100 196617 0 1 1 0;
#X add cubes;
#X add tetra;
#X prefix_set 0 0 0;
#X pattrmode 1;
#P flonum 128 299 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 128 319 55 196617 epsilon $1;
#P flonum 70 300 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 68 319 59 196617 isolevel $1;
#P window linecount 2;
#P newex 31 406 309 196617 jit.gl.isosurf foo @lighting_enable 1 @color 0.6 0.5 0.4 0.9 @isolevel 0.11 @poly_mode 1 0 @blend_enable 1 @depth_enable 1;
#B color 5;
#P window linecount 1;
#P message 522 309 68 196617 fullscreen $1;
#P toggle 505 309 15 0;
#P newex 547 284 35 196617 sel 27;
#P newex 505 284 40 196617 keyup;
#P toggle 31 28 15 0;
#P newex 31 49 51 196617 qmetro 5;
#P window linecount 2;
#P newex 522 327 143 196617 jit.window foo @depthbuffer 1 @fsaa 1;
#P window linecount 1;
#P newex 212 73 50 196617 t erase b;
#B color 5;
#P newex 63 375 153 196617 jit.gl.handle foo @auto_rotate 1;
#P newex 212 113 290 196617 jit.gl.render foo @blend_enable 1 @erase_color 0.8 0.8 0.7 1.;
#P newex 31 113 168 196617 jit.matrix rakk 1 float32 50 50 50;
#P window setfont "Sans Serif" 20.;
#P comment 420 42 173 196628 Asteroid Growths;
#P window setfont "Sans Serif" 9.;
#P comment 520 133 103 196617 first load a sound file;
#N vpatcher 875 489 1125 882;
#P origin 0 -34;
#P inlet 24 22 15 0;
#P toggle 24 39 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#P newex 24 59 52 196617 metro 50;
#N counter 2 0 49;
#X flags 0 0;
#P newobj 24 79 77 196617 counter 2 0 49;
#P message 24 99 192 196617 srcdimstart 0 0 $1 , srcdimend 49 49 $1;
#P user jit.pwindow 2 188 183 178 0 1 0 0 1 0;
#P window linecount 4;
#P newex 6 130 82 196617 jit.matrix 1 float32 50 50 50 @usesrcdim 1;
#P inlet 6 39 15 0;
#P comment 89 129 124 196617 This pwindow scrolls back and forth through the z dimension of our 3-d matrix;
#P connect 2 0 3 0;
#P fasten 4 0 2 0 29 125 11 125;
#P connect 1 0 2 0;
#P connect 8 0 7 0;
#P connect 7 0 6 0;
#P connect 6 0 5 0;
#P connect 5 0 4 0;
#P pop;
#P newobj 130 164 77 196617 p matrix-show;
#P comment 206 188 100 196617 < ---growth matrix;
#P user panel 503 109 150 136;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 11 0 10 0;
#P connect 10 0 5 0;
#P connect 47 0 5 0;
#P connect 5 0 32 0;
#P connect 32 0 16 0;
#P fasten 37 0 16 0 414 402 36 402;
#P fasten 35 0 16 0 316 402 36 402;
#P fasten 23 0 16 0 223 402 36 402;
#P fasten 7 0 16 0 68 399 36 399;
#P fasten 17 0 16 0 73 353 36 353;
#P fasten 19 0 16 0 133 353 36 353;
#P fasten 22 0 16 0 190 353 36 353;
#P connect 32 0 31 0;
#P connect 18 0 17 0;
#P connect 31 0 32 1;
#P connect 20 0 19 0;
#P fasten 32 0 2 0 36 158 135 158;
#P fasten 21 1 22 0 235 315 190 315;
#P fasten 11 0 2 1 36 45 202 45;
#P fasten 10 0 8 0 36 69 217 69;
#P fasten 8 1 6 0 257 101 217 101;
#P connect 8 0 6 0;
#P connect 24 0 23 0;
#P connect 36 0 35 0;
#P fasten 40 0 38 0 476 340 455 340;
#P connect 38 0 37 1;
#P fasten 40 0 39 0 476 340 496 340;
#P connect 39 0 37 2;
#P fasten 13 0 14 0 552 306 510 306;
#P hidden connect 28 0 27 0;
#P hidden connect 29 0 27 0;
#P connect 30 0 27 0;
#P connect 27 0 43 0;
#P connect 43 0 26 0;
#P fasten 14 0 15 0 521 324 521 309;
#P connect 15 0 9 0;
#P connect 44 0 43 1;
#P fasten 12 0 13 0 546 301 546 286;
#P fasten 27 0 25 0 511 174 569 174;
#P fasten 27 0 25 1 511 174 603 174;
#P pop;


June 3, 2006 | 6:27 pm

You could use my render_node patch, available from http://2uptech.com/
archive.html .

-Randy


June 3, 2006 | 7:27 pm

thanks for help, but i fear my problem is more basic!
i need the basic steps for applying one of the "render_examples" to
a situation like it is in "asteroid growths". it would help me a lot to see and know what must be differnt in this example.
are the three examples really helpfull, also for this patch?
thanks in advance


June 3, 2006 | 7:49 pm

Here’s one way. I’ll let you figure out the other ways:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 233 189 20 196617 t b;
#P user jit.fpsgui 204 305 60 196617 0;
#P user jit.pwindow 398 364 82 62 0 1 0 0 1 0;
#P newex 355 339 115 196617 jit.dimmap @invert 0 1;
#P newex 332 319 140 196617 jit.matrix gl 4 char 320 240;
#P message 307 269 197 196617 reset , glreadpixels gl 0 0 320 240 , draw;
#P newex 350 288 145 196617 jit.gl.sketch foo @automatic 0;
#P hidden newex 568 497 106 196617 bgcolor 130 120 120;
#P newex 119 132 48 196617 r eraser;
#B color 5;
#P window linecount 7;
#P comment 452 201 100 196617 The growth matrix works by mixing a
slightly magnified matrix in a feedback loop , which gives the
appearance of outward motion.;
#P window linecount 1;
#P comment 128 159 100 196617 populated matrix;
#P flonum 588 242 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 566 259 32 196617 *~ 3;
#P window linecount 2;
#P comment 565 313 137 196617 open matrix-maker patch for matrix filling info.;
#P window linecount 1;
#P comment 621 219 82 196617 and turn on audio;
#P toggle 531 375 15 0;
#P toggle 551 413 15 0;
#P toggle 510 413 15 0;
#P newex 469 434 92 196617 pak poly_mode 0 0;
#P toggle 371 418 15 0;
#P message 371 435 96 196617 smooth_shading $1;
#P comment 534 131 119 196617 andrewb@cycling74.com;
#P comment 107 89 102 196617 < -- start rendering;
#P newex 91 196 103 196617 jit.xfade @xfade 0.9;
#P window linecount 3;
#P newex 103 242 160 196617 jit.matrix 1 float32 50 50 50 @usesrcdim 1
@srcdimstart 2 2 2 @srcdimend 47 47 47 @interp 1;
#P toggle 566 173 15 0;
#P window linecount 1;
#P message 613 173 37 196617 loop 1;
#P message 582 173 30 196617 open;
#N sfplay~ 1 120960 0 ;
#P newobj 566 210 44 196617 sfplay~;
#N vpatcher 278 432 735 820;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 62 169 29 196617 value;
#P window linecount 8;
#P comment 44 218 152 196617 Using Amplitude Modulation , the signals
are outputing a randomly ramping range of 0-50 , the same as the
dimensions of our matrix "rakk" in the main patcher. Thus , we are
scrolling through the 3-D space , plotting points along the way.;
#P window linecount 1;
#P comment 145 162 19 196617 x;
#P comment 217 161 19 196617 y;
#P comment 288 161 19 196617 z;
#P newex 328 86 38 196617 *~ 25;
#P newex 328 62 51 196617 rand~ 30;
#P newex 383 61 44 196617 sig~ 25;
#P newex 260 157 27 196617 +~;
#P newex 300 40 51 196617 rand~ 80;
#P newex 300 108 38 196617 *~ 25;
#P inlet 44 169 15 0;
#P newex 203 88 38 196617 *~ 25;
#P newex 203 66 50 196617 rand~ 20;
#P newex 55 42 44 196617 sig~ 25;
#P newex 254 66 44 196617 sig~ 25;
#P newex 129 95 38 196617 *~ 25;
#P newex 129 74 50 196617 rand~ 80;
#P newex 188 157 27 196617 +~;
#P newex 116 159 27 196617 +~;
#P newex 178 42 50 196617 rand~ 50;
#P newex 101 42 55 196617 rand~ 200;
#P newex 178 110 38 196617 *~ 25;
#P newex 101 119 38 196617 *~ 25;
#N vpatcher 733 439 1149 680;
#P origin 0 14;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#N vpatcher 10 59 138 244;
#P window setfont "Sans Serif" 9.;
#P newex 6 127 40 196617 t clear;
#P window linecount 1;
#P newex 6 146 48 196617 s eraser;
#P newex 6 108 32 196617 sel 1;
#P newex 6 87 39 196617 < 0.01;
#P window linecount 0;
#P newex 6 65 69 196617 peakamp~ 20;
#P inlet 6 27 15 0;
#P connect 0 0 1 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 5 0;
#P connect 5 0 4 0;
#P pop;
#P newobj 6 59 41 196617 p clear;
#P comment 145 111 243 196617 The incoming "value" signal is used as a
multiplier for a randomly ramping signal. In this way , the shape
becomes responsive to sound , without having too linear a
correlation.;
#P inlet 97 33 15 0;
#P window linecount 1;
#P newex 116 181 91 196617 jit.poke~ rakk 3 0;
#P newex 116 110 27 196617 *~;
#P newex 116 87 45 196617 rand~ 3;
#P inlet 45 33 15 0;
#P inlet 80 33 15 0;
#P inlet 62 33 15 0;
#P fasten 2 0 8 0 50 53 11 53;
#P connect 3 0 4 0;
#P connect 4 0 5 0;
#P fasten 2 0 4 1 50 65 138 65;
#P fasten 0 0 5 1 67 178 148 178;
#P fasten 1 0 5 2 85 171 175 171;
#P fasten 6 0 5 3 102 164 202 164;
#P pop;
#P newobj 44 198 226 196617 p writer;
#P window linecount 4;
#P comment 272 199 122 196617 Each of these signal paths represents
the location along an axis of the given point;
#P connect 14 0 1 0;
#P connect 4 0 2 0;
#P fasten 11 0 6 0 60 143 121 143;
#P connect 6 0 1 1;
#P connect 8 0 9 0;
#P connect 9 0 2 1;
#P fasten 2 0 6 1 106 143 138 143;
#P connect 5 0 3 0;
#P fasten 10 0 7 0 259 146 193 146;
#P connect 7 0 1 2;
#P connect 12 0 13 0;
#P fasten 3 0 7 1 183 146 210 146;
#P connect 13 0 3 1;
#P fasten 18 0 17 0 388 144 265 144;
#P connect 17 0 1 3;
#P fasten 15 0 17 1 305 144 282 144;
#P connect 16 0 15 0;
#P connect 19 0 20 0;
#P connect 20 0 15 1;
#P pop;
#P newobj 566 279 82 196617 p matrix-maker;
#P user ezdac~ 624 242 668 275 0;
#P toggle 278 419 15 0;
#P message 278 436 92 196617 lighting_enable $1;
#P newex 245 378 70 196617 prepend mode;
#P user ubumenu 245 357 100 196617 0 1 1 0;
#X add cubes;
#X add tetra;
#X prefix_set 0 0 0;
#X pattrmode 1;
#P flonum 188 359 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 188 379 55 196617 epsilon $1;
#P flonum 130 360 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 128 379 59 196617 isolevel $1;
#P window linecount 2;
#P newex 91 466 309 196617 jit.gl.isosurf foo @lighting_enable 1
@color 0.6 0.5 0.4 0.9 @isolevel 0.11 @poly_mode 1 0 @blend_enable 1
@depth_enable 1;
#B color 5;
#P window linecount 1;
#P message 582 369 68 196617 fullscreen $1;
#P toggle 565 369 15 0;
#P newex 607 344 35 196617 sel 27;
#P newex 565 344 40 196617 keyup;
#P toggle 91 88 15 0;
#P newex 91 109 51 196617 qmetro 5;
#P window linecount 2;
#P newex 582 387 143 196617 jit.window foo @depthbuffer 1 @fsaa 1;
#P window linecount 1;
#P newex 272 133 50 196617 t b erase;
#B color 5;
#P newex 123 435 153 196617 jit.gl.handle foo @auto_rotate 1;
#P newex 272 173 290 196617 jit.gl.render foo @blend_enable 1
@erase_color 0.8 0.8 0.7 1.;
#P newex 91 173 168 196617 jit.matrix rakk 1 float32 50 50 50;
#P window setfont "Sans Serif" 20.;
#P comment 480 102 173 196628 Asteroid Growths;
#P window setfont "Sans Serif" 9.;
#P comment 580 193 103 196617 first load a sound file;
#N vpatcher 875 489 1125 882;
#P origin 0 -34;
#P inlet 24 22 15 0;
#P toggle 24 39 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#P newex 24 59 52 196617 metro 50;
#N counter 2 0 49;
#X flags 0 0;
#P newobj 24 79 77 196617 counter 2 0 49;
#P message 24 99 192 196617 srcdimstart 0 0 $1 , srcdimend 49 49 $1;
#P user jit.pwindow 2 188 183 178 0 1 0 0 1 0;
#P window linecount 4;
#P newex 6 130 82 196617 jit.matrix 1 float32 50 50 50 @usesrcdim 1;
#P inlet 6 39 15 0;
#P comment 89 129 124 196617 This pwindow scrolls back and forth
through the z dimension of our 3-d matrix;
#P connect 2 0 3 0;
#P fasten 4 0 2 0 29 125 11 125;
#P connect 1 0 2 0;
#P connect 8 0 7 0;
#P connect 7 0 6 0;
#P connect 6 0 5 0;
#P connect 5 0 4 0;
#P pop;
#P newobj 190 224 77 196617 p matrix-show;
#P comment 266 248 100 196617 < ---growth matrix;
#P user panel 563 169 150 136;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 55 0 50 0;
#P connect 55 0 51 0;
#P connect 8 0 55 0;
#P connect 8 0 6 0;
#P connect 10 0 5 0;
#P fasten 10 0 8 0 96 129 277 129;
#P fasten 8 1 6 0 317 161 277 161;
#P connect 50 0 49 0;
#P connect 52 0 54 0;
#P connect 52 0 53 0;
#P connect 27 0 43 0;
#P fasten 27 0 25 0 571 234 629 234;
#P fasten 27 0 25 1 571 234 663 234;
#P fasten 12 0 13 0 606 361 606 346;
#P connect 44 0 43 1;
#P connect 15 0 9 0;
#P fasten 14 0 15 0 581 384 581 369;
#P connect 43 0 26 0;
#P hidden connect 28 0 27 0;
#P hidden connect 29 0 27 0;
#P connect 30 0 27 0;
#P fasten 13 0 14 0 612 366 570 366;
#P connect 39 0 37 2;
#P fasten 40 0 38 0 536 400 515 400;
#P fasten 40 0 39 0 536 400 556 400;
#P connect 38 0 37 1;
#P connect 36 0 35 0;
#P connect 51 0 52 0;
#P connect 24 0 23 0;
#P connect 11 0 10 0;
#P fasten 11 0 2 1 96 105 262 105;
#P fasten 21 1 22 0 295 375 250 375;
#P connect 32 0 16 0;
#P connect 32 0 31 0;
#P fasten 32 0 2 0 96 218 195 218;
#P connect 20 0 19 0;
#P connect 31 0 32 1;
#P connect 18 0 17 0;
#P fasten 37 0 16 0 474 462 96 462;
#P fasten 35 0 16 0 376 462 96 462;
#P fasten 23 0 16 0 283 462 96 462;
#P fasten 7 0 16 0 128 459 96 459;
#P fasten 17 0 16 0 133 413 96 413;
#P fasten 19 0 16 0 193 413 96 413;
#P fasten 22 0 16 0 250 413 96 413;
#P connect 5 0 32 0;
#P connect 47 0 5 0;
#P window clipboard copycount 56;


June 3, 2006 | 10:38 pm

many thanks wesley, best help ever!!!

also thanks randy, when i have more practise, i will explore your patch!


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