Talking about late replies... (sorry...)
9 months later...
I think this disabling interpolation thing could be really useful for processing, for using generated graphics, using small resolutions but large screen space with a pixely look, undersampling offscreen buffers to improve performance.
-
http://draconiansolo.wordpress.com/
9 months later...
- import processing.opengl.*;
- import javax.media.opengl.*;
- PGraphics buffer;
- GL2 gl;
- PGraphicsOpenGL pgl;
- void setup() {
- size(320, 240, OPENGL);
- noSmooth();
- hint(DISABLE_TEXTURE_MIPMAPS);
- ((PGraphicsOpenGL)g).textureSampling(3);
- }
- void draw() {
- buffer=createGraphics(width/8, height/8, P3D);
- buffer.noSmooth();
- buffer.beginDraw();
- buffer.background(0);
- buffer.stroke(255);
- buffer.line(0, 0, buffer.width, buffer.height);
- buffer.endDraw();
- image(buffer, 0, 0, width, height);
- }
I think this disabling interpolation thing could be really useful for processing, for using generated graphics, using small resolutions but large screen space with a pixely look, undersampling offscreen buffers to improve performance.
-
http://draconiansolo.wordpress.com/