jit.alphablend and jit.matrix

Apr 17, 2010 at 11:52pm

jit.alphablend and jit.matrix

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
#49829
Apr 18, 2010 at 11:44am

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

#178943
Apr 18, 2010 at 1:37pm

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. –
#178944

You must be logged in to reply to this topic.