Forums > Jitter

converting opengl

October 19, 2008 | 8:57 pm

is there a way to convert open gl data to apply quicktime fx?

thanks in advance.

cheers


October 19, 2008 | 9:52 pm

found this example patch, it converts the opengl to a matrix, hope this what your looking for

– Pasted Max Patch, click to expand. –

October 20, 2008 | 8:36 am

yes, thanks a lot!! this is exactly for what i’m looking for.

cheers


October 20, 2008 | 9:13 am

A more efficient and easier way to convert back to matrix is using the
jit.gl.asyncread object available in jitter 1.7.
pelado

– Pasted Max Patch, click to expand. –

October 20, 2008 | 9:37 pm

thanks pelado. i


October 21, 2008 | 4:45 pm

do you mean something like this?

pelado


October 21, 2008 | 5:15 pm

great! thanks a lot.
but when i use the "@visible 0" argument to the first jit.window everything stops. how can i hide this unnessesary window?

thx


October 21, 2008 | 9:50 pm

I’m not sure that you can get rid of a window for a particular context. I
think you always need one in order to set up the context for openGL. One
thing you can do is to have a ‘preview’ pwindow in your patch in place of
the jit.window, like this:

– Pasted Max Patch, click to expand. –

pelado

On Tue, Oct 21, 2008 at 7:15 PM, i.te wrote:

>
> great! thanks a lot.
> but when i use the "@visible 0" argument to the first jit.window everything
> stops. how can i hide this unnessesary window?
>
> thx
>


October 21, 2008 | 9:59 pm

At this point, there’s no way to use jit.gl.asyncread without a
visible window. This may be possible in a future version, but such a
change won’t happen until the next major jitter update.
thanks,
wes


October 22, 2008 | 7:21 pm

thanks guys!


November 1, 2008 | 10:53 pm

Wes wrote:
"At this point, there’s no way to use jit.gl.asyncread without a visible window."

It works for me if I make sure that the window is visible for the first render cycle, and then set to @visible 0. This solution also works with the glreadpixels command to sketch – which I posted about a while back here:

http://www.cycling74.com/forums/index.php?t=msg&goto=153903&rid=3109&S=1a854ffb500317a3bd7fa585cc89b700#msg_153903

Here’s a Max5 example patch with gl.asyncread:

best,
Zachary

– Pasted Max Patch, click to expand. –

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