operations with texture vs matrix

OCH's icon

Hi, very basic question (sorry):
Why do I get some grey lines separating the pixels when I am using jit.gl.texture (texture generated from jit.matrix) vs when I always stay in the jit.matrix world?

Please see the patch below. I understand this is an extremely basic question for more advanced jitter users. I am sorry, and thank you for all the help you can provide to understand this.

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

OCH's icon

So... I've found that if I change the resolution of the original matrix I can "fix" this issue.
I understand the problem I am facing relates somehow with what is intrinsically different between matrices and textures: one uses pixels and the other vectors. This is just my intuition talking.
I would love if someone could share some more well articulated insights into this.
Also, why does the jit.gl.texture output seems fine whereas if I connect the small matrix directly to a jit.gl.pix it will unavoidably show the "pixel interpolation" effect? I am just trying to learn this part of Max a bit better.

OCH's icon

Here is another walkaround based on the suggestion by mattyo here:

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


I still don't understand some things though: on the red jit.gl.pix object, why do I get 2 shades of dark further down the line when I insert a vec 0 in between in1 and out1? Because these are single channel black and white matrices, I would guess the equivalent would be a vec with a single index.