import processing.opengl.*; import controlP5.*; import javax.media.opengl.*; ControlP5 controlP5; PGraphicsOpenGL pgl; GL gl; PImage img_pot; PImage img_npot; void setup() { size( 640, 360, OPENGL ); controlP5 = new ControlP5( this ); controlP5.setAutoInitialization( false ); controlP5.setAutoDraw( false ); controlP5.Button button = controlP5.addButton( "THIS BUTTON LABEL GETS A STRANGE BLUR", 0.0, 10, 10, 200, 10 ); img_pot = loadImage( "C:\\Program Files\\processing-1.0.8\\examples\\3D\\Textures\\TextureCube\\data\\uvtex.jpg" ); img_npot = loadImage( "C:\\Program Files\\processing-1.0.8\\examples\\3D\\Image\\Explode\\data\\eames.jpg" ); } void draw() { pgl = (PGraphicsOpenGL) g; // g may change gl = pgl.beginGL(); // always use the GL object returned by pgl pgl.endGL(); background(0); // you can notice the problem easily here controlP5.draw(); // POT texture - doesnt suffer this problem - the following is 256 x 256 // afaik POT texture doesnt have to be a square, i noticed that a 256x128 texture gets blurred too image( img_pot, 10, 30 ); // NPOT texture - this gets blurred, compare this in photoshop using "difference" with the original one // it's much more noticeable when the texture contains Text or sharp details image( img_npot, 276, 30 ); }