Interpolation slab

Oct 27, 2009 at 9:16am

Interpolation slab

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

#46174
Oct 27, 2009 at 4:36pm

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.

#166307
Oct 27, 2009 at 10:49pm

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

#166308
Oct 27, 2009 at 11:12pm

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

AB

#166309
Oct 27, 2009 at 11:23pm

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

#166310

You must be logged in to reply to this topic.