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.
Page Index Toggle Pages: 1
OpenGL Alpha Problem (Read 509 times)
OpenGL Alpha Problem
May 19th, 2009, 2:39am
 
On my ATIx700 powered laptop, I've got a problem using opengl.  The simple sketch below should show a blurred pixel travelling across the screen and this is what it does using every other renderer.  However, using opengl it shows either:
a) two pixels travelling across a black background if the background(0) command is in the setup function.
b) two pixels travelling across a grey background (with the grey colour inversely proportional to the alpha value in the fill command).

This isn't a problem with any of my other PCs....

Anyone else had this issue?

Quote:
import processing.opengl.*;
void setup()
{
  size(400,400,OPENGL);
  background(0);  
}
float t = 0;
int y = 0;
void draw()
{
  fill(0,64);
  rect(0,0,width,height);
  //fill(255);
  stroke(255);
  y++;
  y%=width;
  point(y,height/2);
  t+=0.007;
}


Page Index Toggle Pages: 1