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

Dec 28, 2008 at 3:11pm

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

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.

#41477
Dec 29, 2008 at 4:43pm

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

#147721
Dec 29, 2008 at 6:03pm

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.
>

#147722

You must be logged in to reply to this topic.