Can jit.gl.texture handle videos larger than 2048 x 768?
Hello, I am working on a project for a client who is using very high resolution video files in conjunction with a Matrox to project across multiple screens. Her files are 4096 x 768. I notice that anything sent to jit.gl.texture above 2048 x 768 produces this error:
jit.gl.texture: setting subteximage during submission.: GL Error: Invalid operation
Below is a small patch that produces this error on my machine. I am using a MacBook with a Intel GMA 950 graphics card. I am wondering if I've hit the maximum resolution jit.gl.texture can handle, or if this a limitation of my computer, or -- best! -- if there's a workaround.
Thanks for your time!
I just tried your patch, works perfectly for me. Even setting the dim to 4096 768 doesn't produce an error. Are you sure this patch produces an error for you? Otherwise it might be your computer. Haven't tried it with external hardware. I am on a 2 month old MacBook Pro 15"
for me it throws errors when either dimension gets above 2050. interestingly it seems to "wrap" after 2048, where 2049 looks the same as 1, 2050 looks like 2, then 2051 and above throws errors. you can tell better with "filter none" rather than default "filter linear" for jit.gl.texture.
surely there are other factors at work too...
For me it doesn't wrap (I stil have a lot of dots going on there) and I can go up to at least 8000x8000 before it gives an error.
It is definitely your (our) computer's graphic card. I tried your patch and had exactly the same problem. GMA950 work not so well as the NVIDIA cards on macbook Pros...
I appreciate all your help! Sylvain, I am wondering that kind of graphics card you are using...
The following is a useful link for determining this sort of info on macintosh:
see the MAX_TEXTURE_SIZE entry for your card/OS.
aww, man, you get 8000x8000? heh...
pretty slow update at 2048x2048 here, but my laptop is rather clunky.
Does the OpenGL and/or QT version make a difference with this, or is it just the card? out of curiosity.
Also isn't it true that textures should be multiples of 2 in both dimensions, and if it's not, it downsamples to the nearest?