Bug 628 : svg candy join/caps throw an error with OPENGL
Last modified: 2008-10-11 13:06




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

 

Reporter:
mflux
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-09-18 13:20
SVG joins and caps have been added for 125. Excellent.

Except, those two features are not available for OpenGL. An SVG draw will
fail if it has any form of strokes at all, under that render mode.

In candy... there should be some test

[code]
protected void drawStyles() {
parent.colorMode(PConstants.RGB, 255);

if (stroke) {
parent.stroke(strokeColor);
parent.strokeWeight(strokeWeight);

if (parent.renderMode != PConstants.OPENGL){
parent.strokeCap(strokeCap);
parent.strokeJoin(strokeJoin);
}

} else {
parent.noStroke();
}
....
[/code]

Something like that. I couldn't quite find a renderMode equivalent.
Additional Comment #1 From splat 2008-01-21 12:36
Just wanted to re-iterate that this is still an issue in 0135.
Additional Comment #2 From splat 2008-01-21 12:37
Just wanted to update that this is still an issue for me in 0135
Additional Comment #3 From fry 2008-01-21 12:43
when the bug is fixed it'll be marked 'fixed'.

unfortunately the problem is messy to fix because of how it has to be able
to sense whether the renderer can handle caps/joins. or we need to not
throw exceptions (or warnings) anymore when you try to use caps/joins with
a renderer that doesn't support it. i haven't had a chance to work on
deeper problems like this for a while.
Additional Comment #4 From fry 2008-10-11 13:06
fixed for 0149. caps/joins are not implemented, but the error message is
only a (one time) warning, which allows the rendering to continue.

unfortunately it only exposes a new problem (bug #947) with opengl and svg
files.