converting opengl

Oct 19, 2008 at 8:57pm

converting opengl

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

thanks in advance.

cheers

#40416
Oct 19, 2008 at 9:52pm

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

– Pasted Max Patch, click to expand. –
#142963
Oct 20, 2008 at 8:36am

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

cheers

#142964
Oct 20, 2008 at 9:13am

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. –
#142965
Oct 20, 2008 at 9:37pm

thanks pelado. i

#142966
Oct 21, 2008 at 4:45pm

do you mean something like this?

pelado

#142967
Oct 21, 2008 at 5:15pm

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

#142968
Oct 21, 2008 at 9:50pm

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
>

#142969
Oct 21, 2008 at 9:59pm

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

#142970
Oct 22, 2008 at 7:21pm

thanks guys!

#142971
Nov 1, 2008 at 10:53pm

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. –
#142972

You must be logged in to reply to this topic.