jit.alphablend and jit.matrix

nnimar's icon

Hello,

I'm using some 120 x 120 px PNG images (with transparency) that I'm trying to composite together. I read the image according to a key pressed, send it to alphablend to get rid of the alpha then to a matrix to position the resulting image using the destdim arguments.

I can position the images or get rid of the alpha but I can't do both... Would anyone have a suggestion ?

Max Patch
Copy patch and select New From Clipboard in Max.

Here is the patch and I have also attached three images that can be triggered by the letters A B C (ASCII 97,98, 99). Thanks !

400.ABC.zip
zip
Gregory Taylor's icon

Have you considered the use of the trigger object to control the order of operations? That's always a good idea when you're interested organized sequences of more than one thing.

nnimar's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Well, rather than processing the image's alpha first then placing it in another matrix, I have done the opposite and it works ! I have put the working code if anyone is interested using it or simply comment on it !