Distort a texture while maintaining the opacity.

Martin Daigle's icon

Hello!

I'm working on a project where I want to distort an image and keep the alpha channel unchanged.

I tried making this happen by converting the textured effects into matrices, and a series of Jit.unpack and jit.pack objects. I feel like I'm not approaching this in the right way...

any help is greatly appreciated.

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

2K's icon

This is what you want to achieve?

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

Martin Daigle's icon

@2K

Yes this really works well - I clearly need to develop jit.gl.pix reflexes!

multiplying the alpha channel really works to make sure that the zero values are maintained.

Thanks your help!