resolution limit for the jit.qt.movie?

Dec 3, 2011 at 10:10pm

resolution limit for the jit.qt.movie?

I am trying to run a pic which is 32000 x 600 pixels (JPEG) as shown in the patch bellow (the idea is to “slide” horizontally the pic – right 2 lefte / left 2 right – in the window). When running it with that resolution in the Jit.qt.movie object I’ve got the following error message:

“jit.gl.texture: setting subteximage during submission.: GL Error: Invalid operation”

I assume it has to do with the resolution cause when I use a smaller resolution (3200 x 600, for instance) I haven’t got this error. Is that a quicktime limit or a Gl problem?

thanx in advance

– Pasted Max Patch, click to expand. –
#60443
Dec 3, 2011 at 11:41pm

I made the patch bellow where one can see that its not a jit.qt.movie probem. I loaded my 32000 x 600 pic and I was able to run it (although it was terrible slow in my macbook pro)in the way I intended (horizontal sliding). Due to the very low performance, I still hope to get it better on GL world. Some clues?

– Pasted Max Patch, click to expand. –
#217538
Dec 4, 2011 at 12:16am

Simple question : did you try the loadram function ?

#217539
Dec 4, 2011 at 12:46am

Yes, I did, with no success.

#217540
Dec 4, 2011 at 2:55am

I am by no means the authority here, but I do think there is a texture limit for GL, which should be a power of 2 in each direction. I think I ran into this before with a different patch, maybe it was 2048 x 2048? Anyway, try the best-fitting and highest resolution in factors of 2 (with the best aspect ratio to match the original), and see if that helps. So, maybe for your original 30000 x 600, you could try 4096 x 256?

Again, this is only if you are going to GL land, using the matrix as a texture.

#217541

You must be logged in to reply to this topic.