I am doing some sort of a GUI uisng the 2D overlay method. But I seem to be losing the details in the textures that I am loading. FYI I am loading them from a tga file and using glAlphaFunc to ‘blank out’ what I don’t want. The tga file when viewed through some other external programs ie Photoshop etc looks ok but when I load it into the program it looks all messed up (blurry).
If you’re distorting the image by mapping it in such a manner that it will have a different aspect ratio than the original image or if the resultant texels are larger or smaller than pixels (very likely) then OpenGL could very likely cause “blurriness” due to texture filtering.
If this is the case, look into glTexParameter* and the GL_TEXTURE_MAG_FILTER and GL_TEXTURE_MIN_FILTER parameters. You can keep it from blurring them.
Also, if your image is appearing to be diluted or missing colors, perhaps you’re rendering at a lower bit depth than the original image was stored.
the image is 1024 x 1024 being mapped onto a quad of the same size. GL_TEXTURE_MAG_FILTER is set to GL_LINEAR while GL_TEXTURE_MIN_FILTER is set to GL_LINEAR_MIPMAP_NEAREST. are these settings wrong?
Also, if your image is appearing to be diluted or missing colors, perhaps you’re rendering at a lower bit depth than the original image was stored.[/b]