jit.world instead of jit.window

jon snow's icon

Hello everyone!
In the patch I've posted I'm using a jit.noise operator to create vertical lines on screen, as in the pwindow.
Is there a way to create the same effect, without passing through a matrix? I need to speed up the patch.

In this patch I am generating small points on screen, using grindshape (as in 'geometry under the hood' - max tutorials).

Thanks

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

Pedro Santos's icon

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

jon snow's icon

It works very well, thank you Pedro!

jon snow's icon

There is only one thing I can't figure out: how to get the same result I get from the 'geometry under the hood'
as you can see in this first patch:

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

if you choose quad_grid you get a different distortion from 'geometry'

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


It looks like with jit.world the polygon mode works differently...?
I would like to have the same effect I have in 'geometry' with jit.world

Pedro Santos's icon

Hi again.
Sending geometry directly to jit.gl.render is a very old approach that isn't recommended anymore.
You can send the geomtry matrix to a jit.gl.mesh object and have much more control.
I also added some modifications to the noise part, namely, you want the noise values to be between -0.5 and 0.5, (not 0. to 1.). Notice that when you crossfade to have only noise, the geometry occupies the right top quadrant. That's because the values are from 0 (center) to 1 (right/top).

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

jon snow's icon

it's also a lot faster!
I've only read the Max manual about jitter, maybe there's more material you would like to suggest me to study from?

jon snow's icon

also... how do I apply effects on elements, like I do with jit.op? Like brightness, contrast, threshold?
I would like to apply effect on the final rendering or on the single parts

Pedro Santos's icon

"You know nothing, Jon Snow"

Sorry, too easy, couldn't resist ;-)

Have a look at the tutorials section here in this site. The forums are a very good source of information also, but not structured and difficult to access for your purposes, because the information is spread out on different topics. Anyway, when I'm looking for something very specific, I search the forums through Google, the forum's search functionality in not very good (for instance, type "capture scene site:cycling74.com/forums").
Another very nice source of information for Jitter is Federico's "Amazing Max Tutorials" channel on YouTube, he's doing a great job.
Regarding your other question, you can process objects or entire scenes with effects using objects like jit.gl.node or jit.gl.pass. Check the respective help files and the Max/Jitter examples for more information on their usage.
Good luck!

jon snow's icon

Thank you very much ;)

jon snow's icon

sorry to bother longer...
I'm going further with that patch, but I have a new problem

provanq.maxpat
Max Patch

when enabling capture on both the jit.gl.node, the writings disappear
it works well, the writings have the blurry effect thanks to slab but it doesn't work after the node is capturing
can you please help me figuring this out?

Pedro Santos's icon

The problem is that it is not easy combining several images. You are sending 2 textures to jit.world's internal videoplane and it can only show one.
You would need to combine the images first, probably using images with alpha channels and then send it to jit.world.

jon snow's icon

I've solved it using jit.gl.pix @gen xfade

david vilayleck's icon

hello in this patch with the jit.pwindow was also a jit.window for display. but instead i would like to create a jit.world for expand funcionalities like output_texture to syphonserver for example . how can i do it ? thanks !

Pedro Santos's icon

Hi! Can you post the patch code? Select all / Copy Compressed, and paste it here. It's easier that way.

david vilayleck's icon

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

david vilayleck's icon

i didn't have a chance to try it with audio from ppooll because i'm having a bug with it atm..

Pedro Santos's icon

Your jit.gl.videoplane should receive from the jiit.gl.texture object.
Does that work for you?

david vilayleck's icon

Yes thanks ! Actually I got this fixed on discord with Federico foderarofoderarofoderarofodaroFoderaro