Forums > Jitter

resolution limit for the jit.qt.movie?

December 3, 2011 | 10:10 pm

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

December 3, 2011 | 11:41 pm

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


tep
December 4, 2011 | 12:16 am

Simple question : did you try the loadram function ?


December 4, 2011 | 12:46 am

Yes, I did, with no success.


December 4, 2011 | 2:55 am

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.


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