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 › raw and stroke
Page Index Toggle Pages: 1
raw and stroke (Read 511 times)
raw and stroke
May 3rd, 2006, 10:23pm
 
I'm using the beginRaw() and endRaw(), and with this snippet of code the resulting pdf loses all the screen translations, setting everything to the top-left of the frame, and yet if it is replaced by fill everything records ok!

Is there any fundamental difference between stroke and fill that might cause this, or is it a bug?

Code:


beginShape(TRIANGLE_STRIP);

for(int j=0; j<res-1; j++)
{
stroke (webcam.pixels[((i*wres)+(j*hres)*webcam.width)]);

vertex(points[i][j].x, points[i][j].y, points[i][j].z);
vertex(points[i+1][j].x, points[i+1][j].y, points[i+1][j].z);
}
endShape();

Re: raw and stroke
Reply #1 - May 3rd, 2006, 11:39pm
 
that would be a bug, sorry bout that. the begin/endRaw and record stuff seem to be pretty buggy. could you post this in the bugs db along with your sketch that reproduces it? i'll be working on this stuff a bit in the next couple of days so i'd like to get it repaired for the next release.
Re: raw and stroke
Reply #2 - May 12th, 2006, 5:52pm
 
fixed for rev 0115, closing thread.
http://dev.processing.org/bugs/show_bug.cgi?id=339
Page Index Toggle Pages: 1