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.
IndexSuggestions & BugsSoftware Bugs › OPENGL: strange filled Polygons
Page Index Toggle Pages: 1
OPENGL: strange filled Polygons (Read 765 times)
OPENGL: strange filled Polygons
May 8th, 2006, 6:56pm
 
If you start the following program, you can drag the filled area with the mouse in some positions, where only parts of the polygon are filled.
You can start it in JAVA2D-Mode and it works - in P3D it doesnt...
Anyone knows why? There is no error-message.


import processing.opengl.*;

void setup(){
 size(800,800, OPENGL);
}
void draw(){
 background(0);
 stroke(255);
 fill(100);

 float d = int(mouseX);
 float xl = 20;
 float xr = 40;
 float xh = 50;
 float y2 = 400;
 float yh = int(mouseY);

 beginShape(POLYGON);
 vertex(xl,height);      
 bezierVertex(xl, y2, d,yh, d,yh);      
 bezierVertex(d, yh, xr, y2, xr, height);      
 bezierVertex(xr, height, xl, height, xl, height);
 endShape();
}
Re: OPENGL: strange filled Polygons
Reply #1 - May 14th, 2006, 2:06pm
 
http://dev.processing.org/bugs/show_bug.cgi?id=97
and
http://dev.processing.org/bugs/show_bug.cgi?id=111
Page Index Toggle Pages: 1