Forums > Jitter

gl to matrix

May 5, 2008 | 9:10 pm

Hi there,

I’m writing a patch which uses various shaders (thank you, thank you, thank you vade!!) there are a few things I want to do using other objects at the end of the shader chain, could anybody advice me on the best way to go back to a matrix from gl world before going to screen?

Oh, and if somebody could post the examples/jitter-examples/render/jit.gl.render-tomatrix.pat
file that would be great as I accidentally saved over it while trying to work this out.

Cheers

Jack


May 5, 2008 | 10:04 pm

If you are using Jitter 1.7/Max 5, use jit.gl.asyncread, otherwise you can do a texture -> jit.matrix 4 char dimx dimy.

What do you want to do in matrix land you cant do in texture land?

And you are welcome btw.


May 5, 2008 | 10:26 pm

Hi vade,

Thanks for your help, I managed to get it running back to matrix land.

I’m using a few objects (mainly jit.scanoffset and jit.scanslide) hooked up with bonk~ to give live video a wee glitch, I’m sure that it can be done in texture land but I’m yet to take the big shader writing jump!! If there are shaders out there that do the same thing I’d love to know about them.

Thanks again for your help and for all your v001 loveliness.

JK


Viewing 3 posts - 1 through 3 (of 3 total)