We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › OpenGL in fullscreen, strange result.
Page Index Toggle Pages: 1
OpenGL in fullscreen, strange result. (Read 838 times)
OpenGL in fullscreen, strange result.
Dec 13th, 2006, 7:43am
 
Hi,

i'm using Hansi's fullscreen_api.pde in my sketch

I get some strange results when i switch to fullscreen, my PImage images are turning white and remain like that when i go back in windowed mode. (see the pics)

http://images6.theimagehosting.com/before.png

http://images6.theimagehosting.com/after.5ee.png

http://images6.theimagehosting.com/winafter.png

If i change to P3D it's working but it is getting terribly slow...

Quote:
PImage token;

void setup() {
size(800,600, OPENGL);
frameRate(60);
smooth();
token = loadImage("token.png");
  setFullScreen( false );        // get fullscreen exclusive mode
  setResolution( 800, 600 );     // change resolution to 640, 480
  createFullScreenKeyBindings();  // let ctrl+f switch between window fullscreen mode
}

void draw(){
...
updateScreen();
...
}

void updateScreen() {
....
image(token,0,0,30,30);
....
}


Can someone explain me what's going on ?

Also, the PNG transparency doesn't seem to be handled in OpenGL. (black squared shape around the tokens)
Page Index Toggle Pages: 1