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 and pixels[] (Read 1875 times)
OPENGL and pixels[]
May 9th, 2005, 11:19am
 
I would like to use opengl to increase significally my projects performances but I'm starting finding many issues. A part the one I already post in the capture forum here another one that makes me think I won't be that able to take advantages of it. In fact the pixels handling seems to be corrupt in a way, so this very simple code

Code:

import processing.opengl.*;

color pink;

void setup(){
size(200,200,OPENGL);
pink = color(255, 102, 204);

}

void draw(){
background(0);
loadPixels();
for (int k=0; k<(width*height/2)-width/2; k++) {
pixels[k] = pink;
}
updatePixels();
}


doesn't work at all... but if I change the rendering removing OPENGL it does. Any reason, suggestion?

Thanks to all, chr
Re: OPENGL and pixels[]
Reply #1 - May 9th, 2005, 3:17pm
 
some of the updatePixels() stuff with opengl broke right before beta so it's been causing trouble, you may just be running into those bugs.
Re: OPENGL and pixels[]
Reply #2 - May 9th, 2005, 3:42pm
 
Sad I look forward to take advantages from opengl... good work guys by the way!
Page Index Toggle Pages: 1