#N canvas 55 357 940 415 10;
#X declare -lib Gem;
#X obj 255 118 gemhead;
#X obj 255 144 render_trigger;
#X obj 332 210 + 1;
#X obj 362 210 % 360;
#X obj 255 279 rotateXYZ;
#X obj 255 359 pix_texture;
#X obj 62 265 gemhead;
#X obj 62 291 world_light;
#X obj 652 251 gemhead 99;
#X obj 548 154 savepanel;
#X msg 673 293 file \$1;
#X obj 420 182 symbol /tmp/gemshot;
#X obj 420 110 bng 30 250 50 0 empty empty empty 0 -6 0 8 #fcfcfc #000000 #000000;
#X obj 420 280 makefilename %s00000.tif;
#X msg 420 308 open \$1;
#X obj 255 387 square 4;
#X obj 255 334 pix_image;
#X msg 134 269 list 1 1 0.4;
#X obj 255 306 color 1 0.3 1;
#X obj 134 248 loadbang;
#X obj 420 210 t b s b s;
#X obj 420 258 symbol;
#X obj 420 234 del 500;
#X obj 301 188 spigot;
#X obj 338 165 tgl 15 0 empty empty empty 0 -6 0 8 #fcfcfc #000000 #000000 0 1;
#X floatatom 301 232 5 0 0 0 - - - 0;
#X obj 301 210 i;
#X obj 548 134 bng 15 250 50 0 empty empty empty 0 -6 0 8 #fcfcfc #000000 #000000;
#X obj 338 123 loadbang;
#X text 186 22 similar to the previous example: [pix_write] gets the current output window and writes it not into a texture but into a file (TIFF or JPEG);
#X text 492 364 mind the 99: [pix_write] has to be called late \, to ensure that all that you want is already rendered onto the screen.;
#X msg 789 285 auto \$1;
#X obj 793 263 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 0 1;
#X obj 60 321 gemhead;
#X obj 60 341 translate 1 0 1 0;
#X obj 60 362 color 0 1 0;
#X obj 60 382 sphere 0.5;
#X obj 652 326 pix_write;
#X obj 828 8 declare -lib Gem;
#X obj 51 113 _gemwin \; 0 \; 0 \; dimen 128 128 \; lighting 1 \; color 0.5 0.3 1;
#X obj 291 254 t a a a a;
#X connect 0 0 1 0;
#X connect 1 0 4 0;
#X connect 1 1 23 0;
#X connect 2 0 3 0;
#X connect 3 0 26 1;
#X connect 4 0 18 0;
#X connect 5 0 15 0;
#X connect 6 0 7 0;
#X connect 8 0 37 0;
#X connect 9 0 11 1;
#X connect 10 0 37 0;
#X connect 11 0 20 0;
#X connect 12 0 11 0;
#X connect 13 0 14 0;
#X connect 14 0 16 0;
#X connect 16 0 5 0;
#X connect 17 0 7 1;
#X connect 18 0 16 0;
#X connect 19 0 17 0;
#X connect 20 0 22 0;
#X connect 20 1 21 1;
#X connect 20 2 37 0;
#X connect 20 3 10 0;
#X connect 21 0 13 0;
#X connect 22 0 21 0;
#X connect 23 0 26 0;
#X connect 24 0 23 1;
#X connect 25 0 40 0;
#X connect 26 0 25 0;
#X connect 27 0 9 0;
#X connect 28 0 24 0;
#X connect 31 0 37 0;
#X connect 32 0 31 0;
#X connect 33 0 34 0;
#X connect 34 0 35 0;
#X connect 35 0 36 0;
#X connect 40 0 4 1;
#X connect 40 1 4 2;
#X connect 40 2 4 3;
#X connect 40 3 2 0;
