[PD] alpha GEM

sara kolster sara at x-i.net
Fri Jan 14 17:21:32 CET 2005


Hey chica!

Thanks; I already figured out something else; by using the alpha [1] and 
change the last inlet of the message to the color-object; that does the 
trick too.

Ciao,

Sara

slimboyfatboyslim wrote:

> hi,
>
> Do you mean sth like this?
>
> Cheers,
> SFS
>
> sara kolster wrote:
>
>> I tried to use a slider which moves between 0 and 1, but it the 
>> alpha-object only seems to take a 0 or a one. That's why I was 
>> looking for another 'alpha-object' which is able to take values 
>> between 0 or 1.
>>
>> Sara
>>
>> james tittle wrote:
>>
>>> On Jan 13, 2005, at 12:43 PM, sara kolster wrote:
>>>
>>>>
>>>> I want to manipulate the alpha of different individual textures. 
>>>> When I use alpha, I cannot give it an other number then 0 or 1, 
>>>> which is not what I want. I would like to change the alpha of a 
>>>> texture a little bit, so it blends into the other textures. Also, 
>>>> when alpha is 1, the white in the images becomes too white [almost 
>>>> overexposed].
>>>
>>>
>>>
>>>
>>> ...um, are you sure about this?  alpha always is between 0 and 1:  
>>> in pd, you have to hold down the shift key when changing a number 
>>> box to get intervening float values...if that doesn't work, why not 
>>> divide by some value?
>>>
>>> hth,
>>> jamie
>>
>>
>>
>>
>> _______________________________________________
>> PD-list at iem.at mailing list
>> UNSUBSCRIBE and account-management -> 
>> http://iem.at/cgi-bin/mailman/listinfo/pd-list
>>
>
>
> ------------------------------------------------------------------------
>
>------------------------------------------------------------------------
>
>#N canvas 78 67 719 587 10;
>#X obj 38 357 gemwin;
>#X msg 75 95 create;
>#X obj 332 30 gemhead;
>#X msg 84 124 destroy;
>#X msg 95 246 1;
>#X msg 95 278 0;
>#X obj 332 371 pix_texture;
>#X msg 375 394 4;
>#X obj 332 76 pix_image ../data/fractal.JPG;
>#X obj 332 302 pix_alpha;
>#X obj 332 421 square;
>#X obj 332 336 alpha;
>#X text 212 222 set the alpha value;
>#X text 394 138 set the high threshold;
>#N canvas 12 0 271 246 cube 0;
>#X obj 69 39 gemhead 20;
>#X obj 69 71 translateXYZ 0 0 -4;
>#X obj 69 205 cube;
>#X obj 69 180 rotateXYZ;
>#X obj 69 112 render_trigger;
>#X obj 115 141 i;
>#X obj 145 142 + 1;
>#X obj 180 143 % 360;
>#X connect 0 0 1 0;
>#X connect 1 0 4 0;
>#X connect 3 0 2 0;
>#X connect 4 0 3 0;
>#X connect 4 1 5 0;
>#X connect 5 0 6 0;
>#X connect 5 0 3 1;
>#X connect 5 0 3 2;
>#X connect 5 0 3 3;
>#X connect 6 0 7 0;
>#X connect 7 0 5 1;
>#X restore 444 551 pd cube in the back;
>#N canvas 660 350 290 179 Gem.init 0;
>#X obj 92 34 loadbang;
>#X msg 118 81 reset;
>#X obj 80 119 outlet;
>#X obj 82 58 t b b;
>#X msg 15 81 dimen 400 400;
>#X connect 0 0 3 0;
>#X connect 1 0 2 0;
>#X connect 3 0 4 0;
>#X connect 3 1 1 0;
>#X connect 4 0 2 0;
>#X restore 116 322 pd Gem.init;
>#X obj 402 118 vsl 15 128 0 1 0 0 empty empty empty 0 -8 0 8 -262144
>-1 -1 6000 1;
>#X floatatom 415 266 5 0 0 0 - - -;
>#X connect 1 0 0 0;
>#X connect 2 0 8 0;
>#X connect 3 0 0 0;
>#X connect 4 0 0 0;
>#X connect 5 0 0 0;
>#X connect 6 0 10 0;
>#X connect 7 0 10 1;
>#X connect 8 0 9 0;
>#X connect 9 0 11 0;
>#X connect 11 0 6 0;
>#X connect 15 0 0 0;
>#X connect 16 0 9 2;
>#X connect 16 0 17 0;
>  
>




More information about the Pd-list mailing list