[jit.gl.texture @repeat mode]
Hello,
I'm using a [jit.gl.texture] to apply an image on a plane, and would like to repeat this texture like a photogram from a film.
So I'm using the tex_mode 3 for my [gl.gridshape @shape plane] and the "wrap repeat" mode for my [gl.texture].
The problem is that the repeated pattern is truncated, and I want the full image to be repeated.
How can I do that ?
Change the dims of your matrix to 256 256.
Yes, thanks.
Otherwise, It seems the "@rectangle 0" does something on the "wrap repeat" mode, but I didn't really understood the ref.
I'm not sure, but my guess is, since most textures are square (128, 256, 512, 1024, 2048) or a combination of these, like 512x256, the rectangle 0 tells jit.gl.texture not to expect a texture in those proportions.
With rectangle 0, and the matrix set to 640x480, it works for me, but maybe your graphics card objects to that... I'm no expert on these matters.
Many graphics cards don't support texture wrap modes unless you use
power of 2 texture dims (equivalent to @rectangle 0).
wes
On Feb 17, 2008 9:45 AM, Brecht wrote:
>
> I'm not sure, but my guess is, since most textures are square (128, 256, 512, 1024, 2048) or a combination of these, like 512x256, the rectangle 0 tells jit.gl.texture not to expect a texture in those proportions.
> With rectangle 0, and the matrix set to 640x480, it works for me, but maybe your graphics card objects to that... I'm no expert on these matters.
>
>
I'm also interested in having an example with a texture repeated over a plane. I don't find a solution to this. It seems that I'm missing some option that must be enabled or disabled in order for useDistDim and useSrcDim to take effect.
Could anyone shed any light on this?
Thank you so much!
w
vizzie ZOOMR module is probably the easiest
Thank you very much,
I managed to make an example (which works on my computer) as I wanted: