jit.world texture dimension

Dg's icon

Hello,
Could someone explain how to get full resolution image with jit.world, jit.gl.videoplane and jit.gl.texture.

When I load a 5871 x 3936 image in jit.gl.texture I get crappy aliasing even with @dim 5871 3936 in jit.world.

Fsaa nor antialiasing do anything.

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


antialias's icon

try dim and adapt 0:

rez.maxpat
Max Patch

Dg's icon

Unfortunately it doesn't do anything. Source image is still pixelated as you can see on the left
Can't a large image be smoothed in a smaller jit.window size?

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


antialias's icon

you can load into a matrix first-- patch and image attached. for speed with this method convert your image to a .jxf in max first, then use read instead of importmovie.

rez-3.maxpat
Max Patch

Rob Ramirez's icon

i think you need to use mipmap filtering when down-sampling textures, which is only available with non-rectangular textures.

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

Dg's icon

Great, thanks!
But it seems jit.gl.cornerpin doesn't like the idea, unfortunately

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

Dg's icon

Otherwise I can't understand why it is not possible to smooth GL edges in this configuration :

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

Rob Ramirez's icon

i would do it like this:

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

Dg's icon

Mmm okay I understand the process but I think only a Cycling74 programmer knows what happens inside the objects. Indeed, there is nothing saying why cornerpin is not able to process the GL stream. Some documentation about what are the possibilities and restrictions of that kind of hybrid GL objects will be great. Max XX? Anyway, the patch help much, thank you.

Rob Ramirez's icon

cornerpin not displaying non-rectangular textures is a bug, and this is the first time that I've seen it.

the technique i demonstrated for you requires no special insider knowledge. my answer came from having to solve a very similar problem for a recent project.

Martin Beck's icon

I have a similar problem with texture quality with jit.gl.model:

https://cycling74.com/forums/texture-quality-with-jit-gl-model

I would also be glad to know more about the possibilities and restrictions of Max' OpenGL.

Rob Ramirez's icon

similar solution, you probably want to enable mipmap filtering. you probably also want to enable @fsaa, and if on a Mac retina display enable @high_res.

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

Martin Beck's icon

Thanks a lot Rob.

Bastien Vairet's icon

Hi everybody,

I created a slideshow. You just need to upload a folder of pictures and it sends them in a random order with a faded transition.

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

I am facing a very similar problem that I can't solve : you can see on the screenshot. On the left, the slideshow ; on the right, the original picture opened in preview on mac. The more the details are thin, the more the pixelation increases. It is obvious on this picture, close from the sunlight ; the difference is not so big, but it's to much for me. Which was the final solution you finally find for this ?

Best,

Bastien.