Forums > Jitter

Interpolation slab


Oct 27 2009 | 9:16 am

Hello Im trying to get an uninterpolated slab chain.
If I go from jit.qt.movie to jit.gl.texture with filter argument on nearest this works, If I put in a jit.gl.slab it does not.
How do I get the slab object to not interpolate the image?
I attached an example.
Many thanx
Lev

Oct 27 2009 | 4:36 pm

You need to send the "filter nearest" setting to the internal output texture of jit.gl.slab. To do this, you can use "sendoutput filter nearest". Another way to accomplish this is to alter the GLSL in the shaders to use "floor(texcoord0)". This will give you truncated texture coordinates for the texture lookup.

Best,
Andrew B.

Oct 27 2009 | 10:49 pm

Hello Andrew, thanx a lot! Have been looking for this solution in the help and reference, but could not find it. Are these kind of commands listed somewhere?
Best Lev

Oct 27 2009 | 11:12 pm

Any message you would normally send to a jit.gl.texture object can be sent to the internal output texture using "sendoutput"

AB

Oct 27 2009 | 11:23 pm

Aha, that is great to know. Thanx a lot. Best Lev

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

Forums > Jitter