Use a texture of 1024x1024 and place your image only in a part of the image, 940x618. Then use the values 940.0 / 1024.0 and 618.0 / 1024.0 for maximum texture coordinates or scale TEXTURE_MATRIX. This will make a 1: 1 display for your pixels. You may also need to shift the model by half a pixel to get a perfect fit, it depends on your setup and viewing the model.
This is the technique I used in this screensaver that I made for Mac. http://memention.com/void/ It captures the contents of the screen and uses it as a texture for some 3D effects, and I really wanted the pixel to fit perfectly.
source
share