Forums > Jitter

How do I get textures in openGL to not have a slight diffusion?

December 28, 2008 | 3:11 pm

Hello,

I’m having trouble with the following:

I set up a plane in a jit.gl.gridshape, scaled the plane to 1.29 1. 1. (the dimensions of a landscape oriented letter page) and loaded a 1035×800 PNG file (a page from a score) into a gl.texture object. When I load this into gl, I get it to work, but the score is slightly diffused/blurry. Depth buffer, smooth shading, and antialiasing are off and ortho is 2. Dim of the texture is 20 20 and when I draw just the texture to a matrix it looks great. I have a feeling this has to do with gl.render…

Any thoughts?

Attached is the patch and image file I’m working with.


December 29, 2008 | 4:43 pm

look at the dim of your gl.texture, you see it defaults to 256×256.
set this to dim of your source image.


December 29, 2008 | 6:03 pm

Am I right in saying you could also use the @adapt 1 attribute for
jit.gl.texture

Correct me someone, if this is incorrect. r

On Mon, Dec 29, 2008 at 11:43 AM, Robert Ramirez wrote:
>
> look at the dim of your gl.texture, you see it defaults to 256×256.
> set this to dim of your source image.
>


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