I've always wondered what the real difference is between a plane shaped
gridshape and a videoplane. Only thing I can think of is that
jit.gl.videoplane is capable of texture interpolation. Maybe this is the
reason why your texture appears to have a higher resolution on a videoplane?
Hi Andrew, thanks for the tip, checking it out right now. Maybe in that case it's time for the jit.gl.gridshape help to be updated? ;)
Hee Thijs! I thought about that too. I compared the output of my patch with the image in an image viewing app. The texture-to-render method definitly down-grades the resolution of the texture. Btw in the patch I set the jit.qt.movie to the exact dimensions of the image.
To clarify, jit.gl.render uses power-of-two textures by default. This
means that your 400x400 image is getting resampled to some power of two
without interpolation. Using jit.gl.texture provides a more friendly
interface for managing textures, and will use rectangular textures by
default (as opposed to power of two), so you will not run into the
aliasing issues. Note also that interpolation can be turned on and off
with jit.gl.texture by using the @filter attribute.
jit.gl.render can create rectangular textures by sending the message
texture name ,
sendtexture rectangle 1
You can also turn off the @rectangle attribute of jit.gl.texture if you
need to use power-of-two textures (as some video cards have limitations
with rectangular textures).
I understand, so render auto-resampled my texture to 256 x 256, videoplane didn't, which caused my confusion. Thanks again.
I believe it would be good to introduce jit.gl.texture in the various helpfiles. If you don't know what you're doing it is better to copy a setup that works by default. At least consider placing jit.gl.texture under 'see also'.