Bug 1171 : Filled shapes not exporting with beginRaw/endRaw with OpenGL
Last modified: 2009-02-23 08:29




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

 

Reporter:
bohnacker
Assigned To:
fry

Attachment Type Created Size Actions
Output in the applet window image/png 2009-02-23 06:55 22.46 KB
PDF output using the P3D renderer application/pdf 2009-02-23 06:56 912 bytes
PDF output using the OpenGL renderer application/pdf 2009-02-23 06:56 879 bytes
fixed opengl.jar, obsolete once 1.0.3 arrives application/octet-stream 2009-02-23 07:27 14.68 KB
core.jar to fix strokeWeight() issues and begin/endRaw application/octet-stream 2009-02-23 07:55 224.22 KB

Description:   Opened: 2009-02-23 06:54
Processing 1.0.2, Mac OS X 10.5.6

Fill colors and stroke width is still not correctly exported to pdf using
beginRaw/endRaw. There are some images attached showing the original applet
window and the exported pdfs using the opneGL and P3D renderer.

------
import processing.opengl.*;
import processing.pdf.*;


void setup() {
size(200, 200, OPENGL);

beginRaw(PDF, "bug_rep.pdf");

rotateY(0.2);

stroke(255, 0, 0);
fill(0);
rect(0,0,width,height);
fill(255);
rect(0,0,50,50);

strokeWeight(10);
line(30, 100, 170, 150);

endRaw();
exit();
}
------
Additional Comment #1 From bohnacker 2009-02-23 06:55
edit]
Output in the applet window
Additional Comment #2 From bohnacker 2009-02-23 06:56
edit]
PDF output using the P3D renderer
Additional Comment #3 From bohnacker 2009-02-23 06:56
edit]
PDF output using the OpenGL renderer
Additional Comment #4 From fry 2009-02-23 07:25
Found it--the other fixes just exposed a different bug that was in there.
Looks like begin/endRaw must have been broken since 1.0.

The fix is in for 1.0.3, and I'm attaching a repaired opengl.jar.
Additional Comment #5 From fry 2009-02-23 07:27
edit]
fixed opengl.jar, obsolete once 1.0.3 arrives
Additional Comment #6 From bohnacker 2009-02-23 07:35
Great! Thanks for your fast bug fixes!

Just one more question: strokes are still always exported with weight 1
(p3d and opengl). will that be fixed someday?
Additional Comment #7 From fry 2009-02-23 07:55
edit]
core.jar to fix strokeWeight() issues and begin/endRaw

Ha, I wasn't aware that was broken. Here's a fixed core.jar. Hopefully that's
all for today.
Additional Comment #8 From bohnacker 2009-02-23 08:23
I don't want to be annoying, but I still have problems with strokeWeight.
But I don't expect you to deal with it today :-)

With beginRaw/endRaw the stroke in the above example is still exported with
weight 1. Additionally I recognized another bug. With opengl even in the
applet window stroke weights above 10 (or so) don't make any difference.
Additional Comment #9 From fry 2009-02-23 08:29
K, those are two new issues, so if you can file them as new bugs (each of
them separately), I can take a look into it when I next have a chance. Thanks!