difference between xfade, alphablend, jit.op @* …

May 23, 2012 at 8:35pm

difference between xfade, alphablend, jit.op @* …

Hi!

I wounder whats the difference between xfade, alphablend, jit.op @*

Illustrated in the patch below. (save and reopen it to get all the loadbangs and loadmess)

– Pasted Max Patch, click to expand. –
#60760
May 24, 2012 at 12:23am

jit.alphablend is only for ARGB matrices, not vertex data. it blends two ARGB matrices together based on the alpha plane of the first matrix input.

jit.xfade is simply two jit.op @op * and one jit.op @op +

– Pasted Max Patch, click to expand. –
#218664
May 28, 2012 at 4:57pm

Thanks!

but why does the area move towards upper right when you increase xfade $1?

and how can I keep the area at the same spot if im using the matrixoutput turn off and matrix output turned on. I dont want the noise to move it towards the upper right. I want to keep it centrated

#218665
May 29, 2012 at 6:02pm

Because jit.noise outputs normalized values in the range of 0 – 1. In OpenGL, 0. is the center coordinate of the GL world. To center your noise values in GL space, you can remap the output of jit.noise using jit.op or jit.map to a range where 0. is the center, for example jit.map @map 0 1 -1 1 or jit.op @op – @val 0.5.

#218666

You must be logged in to reply to this topic.