Thoralf Schulze wrote:
It doesn't pay to think photoshop when using gem. the
gem-way of doing things is actually the more elegant
one. don't forget to share your patch when you're done
- others might be interested too.
i think i found a better - photoshop-like :) - solution..
there is an example of this solution attached to this mail:
the pix_multiply function just works for pix.. that was my problem.
you can't multiply a movie with a "normal" rectangle-object this way..
my workaround:
i took a black image in the same dimensions as my movie-material and
used pix_rectangle to draw a rectangle on this black dummy-image.
so i could use pix_multiply to combine the movie with the black-image i
painted the rectangle on..
this works quite great for making visuals :D
have fun !
--
lorenz aka orjo
gem@orjo.net
#N canvas 0 54 1267 723 12;
#X msg 464 176 colorspace Grey;
#X obj 924 192 gemwin;
#X msg 1046 113 create;
#X obj 910 140 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X msg 967 103 destroy;
#X obj 292 555 rectangle 4 3;
#X msg 462 134 colorspace RGBA;
#X obj 713 71 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 729 282 unpack 0 0 0;
#X floatatom 715 305 5 0 0 3 length - -;
#X floatatom 764 305 5 0 0 3 width - -;
#X floatatom 814 305 5 0 0 3 height - -;
#X obj 769 263 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144
-1 -1;
#X floatatom 783 226 5 0 10000 1 frame# - -;
#X obj 620 127 openpanel;
#X msg 620 147 open $1;
#X msg 711 190 auto $1;
#X obj 711 172 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X obj 604 52 gemhead 20;
#X obj 603 27 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X msg 879 245 0;
#X obj 610 221 pix_film;
#X obj 291 503 pix_texture;
#X obj 978 14 loadbang;
#X obj 584 291 pix_invert;
#X obj 565 261 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 56 53 gemhead 20;
#X obj 51 153 pix_image black.jpg;
#X obj 57 21 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X obj 58 308 pix_rectangle;
#N canvas 481 84 492 530 x_y_w_h_rect 0;
#X floatatom 94 82 0 -10 250 0 - - -;
#X obj 185 278 t b f;
#X obj 185 252 + 40;
#X obj 107 264 + 40;
#X obj 94 152 t f f;
#X obj 145 152 t f f;
#X text 140 85 x-pos;
#X text 188 113 y-pos;
#X floatatom 231 148 0 -50 250 0 - - -;
#X text 277 151 width;
#X obj 231 218 t b f;
#X obj 282 218 t b f;
#X obj 107 287 t b f;
#X floatatom 147 114 0 -10 250 0 - - -;
#X floatatom 285 176 0 -50 250 0 - - -;
#X obj 108 364 pack 0 0 40 40;
#X obj 92 38 inlet;
#X obj 176 40 inlet;
#X obj 243 43 inlet;
#X obj 304 62 inlet;
#X obj 109 409 outlet;
#X text 319 174 height;
#X connect 0 0 4 0;
#X connect 1 0 15 0;
#X connect 1 1 15 3;
#X connect 2 0 1 0;
#X connect 3 0 12 0;
#X connect 4 0 15 0;
#X connect 4 1 3 0;
#X connect 5 0 2 0;
#X connect 5 1 15 1;
#X connect 8 0 10 0;
#X connect 10 0 3 0;
#X connect 10 1 3 1;
#X connect 11 0 2 0;
#X connect 11 1 2 1;
#X connect 12 0 15 0;
#X connect 12 1 15 2;
#X connect 13 0 5 0;
#X connect 14 0 11 0;
#X connect 15 0 20 0;
#X connect 16 0 0 0;
#X connect 17 0 13 0;
#X connect 18 0 8 0;
#X connect 19 0 14 0;
#X restore 242 260 pd x_y_w_h_rect;
#X floatatom 193 213 5 0 0 0 - - -;
#X floatatom 245 214 5 0 0 0 - - -;
#X floatatom 299 213 5 0 0 0 - - -;
#X floatatom 358 212 5 0 0 0 - - -;
#X text 62 103 load a black image with same dimensions as the movie
;
#X text 191 195 x-dim;
#X text 243 195 y-dim;
#X text 297 194 width;
#X text 359 192 height;
#X obj 290 449 pix_multiply;
#X text 94 194 rectangle properties:;
#X text 506 259 invert?;
#X text 741 67 load a movie with same dimensions as your black image
;
#X obj 114 8 loadbang;
#X text 157 429 function to mix the two sources: also works with pix_diff
pix_add etc.;
#X text 850 138 render?;
#X connect 0 0 21 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 6 0 21 0;
#X connect 7 0 14 0;
#X connect 8 0 9 0;
#X connect 8 1 10 0;
#X connect 8 2 11 0;
#X connect 12 0 20 0;
#X connect 13 0 21 1;
#X connect 14 0 15 0;
#X connect 15 0 21 0;
#X connect 16 0 21 0;
#X connect 17 0 16 0;
#X connect 18 0 21 0;
#X connect 19 0 18 0;
#X connect 20 0 13 0;
#X connect 21 0 24 0;
#X connect 21 1 8 0;
#X connect 21 2 12 0;
#X connect 22 0 5 0;
#X connect 23 0 3 0;
#X connect 23 0 2 0;
#X connect 23 0 19 0;
#X connect 23 0 17 0;
#X connect 24 0 40 1;
#X connect 25 0 24 0;
#X connect 26 0 27 0;
#X connect 27 0 29 0;
#X connect 28 0 26 0;
#X connect 29 0 40 0;
#X connect 30 0 29 1;
#X connect 31 0 30 0;
#X connect 32 0 30 1;
#X connect 33 0 30 2;
#X connect 34 0 30 3;
#X connect 40 0 22 0;
#X connect 44 0 28 0;