Texture processing with jit.gl.graph

madie's icon
Max Patch
Copy patch and select New From Clipboard in Max.

While trying to find a workaround with processing jit.gl.graph since it does not output a matrix, I found Rob Ramirez's patch where he captures the object as a texture and sends it to videoplane. However, when trying to add shaders, it produces no results.
Can someone explain this to me? Thanks!

phiol's icon

Hey madie

a few things,

- jit.gl.graph already sorta behaves like a plane. By putting your videoplane in front of it you were blocking the view.
- if you want to capture gl.graph or any 3D objects for that matter, to then render to a 2D texture for further processing like blur,
jit.gl.node @capture 1 is your friend.
- the other thing you did is give your jit.window a contex name but not your render or anything else.
- finally I changed your gaussian blur , if you double click on the slab in yours, you 'll see that what gaussian needs is a vec2 where you're send values to the width.
usually done as such with a cascade of 4 to 6 jit.gl.slab gaussian balbalb

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

you'll see in my patch there are 4 in cascade , we're I'm addressing the x on one, the y on the other , then the same value x 2 etc...
the glpix, could very be replaced by jit.gl.slab

madie's icon

thanks phiol, you are a bad ass!
a very helpful & thorough explanation.

phiol's icon

My pleasure :-)