• Advertisement
Sign in to follow this  

OpenGL Texture Blur?

This topic is 1983 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, in opengl when I load a texture and stretch it across a face it blurs the picture a bit. I'm guessing this is openGL's default way of stretching textures.
Is there a way to change it from texture blur to just normal stretch?
For instance: I've drawn an 8*8 pixel image in gimp or something and I put it on a face of a cube in opengl, opengl decides to blur the texture. Pixel effect is ruined.
Surely openGl has an option to set the texture mode to no blur?
Thanks in advance.
+1 rep for solution.

Share this post


Link to post
Share on other sites
Advertisement
Set GL_TEXTURE_MAG_FILTER to GL_NEAREST instead of GL_LINEAR.

Share this post


Link to post
Share on other sites
[quote name='japro' timestamp='1345159801' post='4970374']
Set GL_TEXTURE_MAG_FILTER to GL_NEAREST instead of GL_LINEAR.
[/quote]

In my opengl initialization code?

Share this post


Link to post
Share on other sites
[quote name='zacaj' timestamp='1345161064' post='4970381']
After you've bound the texture with glBindTexture
[/quote]

Thanks!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement