Hi,
If I use [pix_2grey], or [pix_contrast], or any other pix_object that
process pix data, after a [pix_set] object, I would expect it to process
the pix data generated by pix_set.
For example, if I use pix_set to create a 2x2 image of all red pixels,
and then connect a [pix_grey], I would expect the image to be converted
to gray.
Shouldn't I????
However, it seems that any processing objects after a [pix_set] have no
effect - the pixels remain unchanged.
Is it a bug or is there an explanation, and in the latter case, how
should one do to process the pix created with pix_set?
Check out the attached example: on the right I use a [pix_image] to load
a 2x2 red image; pix_2grey changes it to grey.
On the left I do the same but instead of loading a 2x2 red image I
create it with [pix_set]. In this case [pix_grey] has no effect.
You can replace [pix_grey] with pix_contrast or any pix processing
object, the result will be the same.
Just confused.
Thanks
m.
--
Matteo Sisti Sette
matteosistisette@gmail.com
http://www.matteosistisette.com
#N canvas 422 123 958 562 12;
#X obj 238 491 gemwin;
#X msg 212 458 create , 1;
#X msg 292 454 destroy;
#X obj 579 315 pix_texture;
#X obj 585 393 square 2;
#X obj 562 343 translateXYZ 2 0 0;
#X obj 571 147 gemhead 53;
#X msg 253 135 RGBA;
#X obj 230 316 pix_texture;
#X obj 229 176 pix_set 1 1;
#X msg 302 131 1 1 1 1;
#X msg 328 103 0 0 0 0;
#X obj 305 29 loadbang;
#X msg 387 130 $1 $1 $1 1;
#X floatatom 415 75 5 0 0 0 - - -;
#X msg 323 64 1 0 0 1;
#X obj 233 366 square 2;
#X obj 213 344 translateXYZ -2 0 0;
#X obj 225 247 pix_2grey;
#X obj 541 264 pix_2grey;
#X obj 229 96 gemhead 51;
#X obj 577 204 pix_image red.jpg;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 5 0;
#X connect 5 0 4 0;
#X connect 6 0 21 0;
#X connect 7 0 9 0;
#X connect 8 0 17 0;
#X connect 9 0 18 0;
#X connect 10 0 9 1;
#X connect 11 0 9 1;
#X connect 12 0 7 0;
#X connect 12 0 15 0;
#X connect 13 0 9 1;
#X connect 14 0 13 0;
#X connect 15 0 9 1;
#X connect 17 0 16 0;
#X connect 18 0 8 0;
#X connect 19 0 3 0;
#X connect 20 0 9 0;
#X connect 21 0 19 0;