Bug 1572 : large number of beginShape(POINTS) not rendering correctly on first frame
Last modified: 2010-06-04 02:20




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
Andor Salga
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2010-05-31 07:39
Version 1.1
Mac OS X 10.5.8
2.2GHz Intel Core 2 Duo

The following code creates a vertical beige strip on the right side of the
sketch. Uncommenting the strokeWeight() call creates the properly colored
vertical strip, but the left side of the sketch is still empty.

void setup(){
size(500, 500,P3D);

// strokeWeight(2);

beginShape(POINTS);
for(int x = 0; x < 255; x++){
for(int y = 0; y < 255; y++){
stroke(x,y,255-x);
vertex( x * 2, y * 2, 0);
}
}
endShape(CLOSE);
}

Should the sketch look identical to the 2D version?

void setup(){
size(500, 500);
strokeWeight(2);

beginShape(POINTS);
for(int x = 0; x < 255; x++){
for(int y = 0; y < 255; y++){
stroke(x,y,255-x);
vertex( x * 2, y * 2);
}
}
endShape(CLOSE);
}
Additional Comment #1 From fry 2010-06-04 02:20
found and fixed for the next release, thanks. the problem was that with a
large number of points, the array was being expanded but there was a typo
in the code that prevented the old data from being copied over after the
expansion. guess nobody's found it before since it doesn't happen inside
draw(), except for on the very first frame (when the expansion first happens).

thanks!