Forums > MaxMSP

Export image from OpenGL

April 17, 2011 | 8:08 pm

Hi,
I searched in the forum but I didn’t find any solution.
I’m trying to export an image 960 x 720 from OpenGL, but my texture is generated from a grabbed frame sized 320 x 240.
I pasted my example patch here
Thanks in advance
micron

– Pasted Max Patch, click to expand. –


MIB
April 17, 2011 | 8:14 pm

your [jit.matrix SAVE] only outputs 320×240!! I don’t know enough about jit.gl.slab to tell you why but I can tell you that if you put a [jit.matrix 4 char 960 720] before you go into the slab you get the right size in the SAVE matrix…

– Pasted Max Patch, click to expand. –

April 17, 2011 | 8:31 pm

Thanks for your reply,
but I’m trying to understand why if I’m rendering on a jit.window 960 720 I can’t export at the same size?
And why a jit.matrix 960 720 after jit.gl.slab doesn’t work ?!?


April 18, 2011 | 7:16 pm

I solved the problem using two jit.gl.render object one for the jit.window and the other for export my matrix


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