fab92's picture


Hi, I started programming a game and I don't kwow why, but when I render a 2D texture (16x16) and I scale it,
I don't see the pixels, because they are fuzzy,
I thought it was antialiasing, but I didn't enabled it ...

example after a scale of my 16x16 png image :

but I want ...

If someone can help me, it well be very cool !

(sorry for my english)


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
AndyKorth's picture

It's not antialasing, it's the texture filtering parameters. Try nearest:

		GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureMinFilter, (int)TextureMinFilter.Nearest);
		GL.TexParameter (TextureTarget.Texture2D, TextureParameterName.TextureMagFilter, (int)TextureMagFilter.Nearest);

Antialiasing is smoothing around the edges of geometry.

Good luck!