Forums > MaxMSP

jit.alphablend and jit.matrix

April 17, 2010 | 11:52 pm

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 ?

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 !

– Pasted Max Patch, click to expand. –
Attachments:
  1. ABC.zip

April 18, 2010 | 11:44 am

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.

http://www.cycling74.com/docs/max5/tutorials/max-tut/basicchapter05.html


April 18, 2010 | 1:37 pm

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 !

– Pasted Max Patch, click to expand. –

Viewing 3 posts - 1 through 3 (of 3 total)