#N canvas 6 61 986 385 10;
#X declare -lib Gem;
#X text 276 35 Blue Sphere;
#X obj 265 98 color 0 0 1 0.5;
#X obj 265 229 pix_texture;
#X obj 265 182 pix_image ../data/dancer.JPG;
#X obj 265 251 alpha;
#X obj 265 207 pix_alpha;
#X obj 265 68 gemhead 50;
#X obj 681 244 alpha;
#X obj 681 173 gemhead 50;
#X obj 681 197 color 0 1 0 0.5;
#X obj 681 222 translateXYZ 0 -0.5 -1;
#X obj 849 123 int 0;
#X obj 891 123 + 1;
#X obj 849 100 metro 50;
#X obj 923 122 % 50;
#X obj 849 81 tgl 15 0 empty render_onoff empty 0 -6 0 8 #fcfcfc #000000 #000000 0 1;
#X obj 849 176 / 25;
#X obj 849 198 - 1;
#X msg 681 124 set \$1;
#X floatatom 681 101 5 0 0 0 - - - 0;
#X msg 679 9 40;
#X msg 696 32 60;
#X obj 849 221 t f f;
#X msg 709 54 auto;
#N canvas 189 208 450 300 set-priority 0;
#X obj 103 59 inlet;
#X obj 94 277 outlet;
#X obj 103 96 route auto;
#X obj 352 59 inlet;
#X obj 352 88 < 0;
#X obj 352 112 change;
#X obj 352 135 select 1 0;
#X msg 327 169 40;
#X msg 363 170 60;
#X obj 94 247 spigot;
#X obj 168 120 t f b;
#X msg 198 145 0;
#X msg 103 117 10;
#X obj 103 138 t f f;
#X connect 0 0 2 0;
#X connect 2 0 12 0;
#X connect 2 1 10 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 6 1 8 0;
#X connect 7 0 9 0;
#X connect 8 0 9 0;
#X connect 9 0 1 0;
#X connect 10 0 1 0;
#X connect 10 1 11 0;
#X connect 11 0 9 1;
#X connect 12 0 13 0;
#X connect 13 0 9 1;
#X connect 13 1 5 0;
#X restore 693 76 pd set-priority;
#X obj 265 272 square 3;
#X obj 681 266 square 3;
#X text 866 81 movement on/off;
#X text 736 9 priority 40 (<50);
#X text 735 28 priority 60 (>50);
#X text 748 51 dynamic ordering;
#X text 218 299 the rendering order does matter \, when doing things like alpha-blending: alpha-blending only works if the semi-transparent (alpha<1) object is rendered AFTER the objects that shine through;
#X text 596 291 this turns out to be a problem in dynamic scenes (eg: with moving objects/viewpoint):: if a semi-transparent object used to be "in front" of another semi-transparent object \, but suddenly becomes "behind" \, the rendering order has to be changed. do this \, by giving the [gemhead] a "set" message;
#X obj 878 8 declare -lib Gem;
#X obj 849 146 t a a;
#X obj 72 168 _gemwin;
#X connect 1 0 3 0;
#X connect 2 0 4 0;
#X connect 3 0 5 0;
#X connect 4 0 25 0;
#X connect 5 0 2 0;
#X connect 6 0 1 0;
#X connect 7 0 26 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 10 0 7 0;
#X connect 11 0 34 0;
#X connect 12 0 14 0;
#X connect 13 0 11 0;
#X connect 14 0 11 1;
#X connect 15 0 13 0;
#X connect 16 0 17 0;
#X connect 17 0 22 0;
#X connect 18 0 8 0;
#X connect 19 0 18 0;
#X connect 20 0 24 0;
#X connect 21 0 24 0;
#X connect 22 0 10 3;
#X connect 22 1 24 1;
#X connect 23 0 24 0;
#X connect 24 0 19 0;
#X connect 34 0 16 0;
#X connect 34 1 12 0;
