Dear Maintainer,
I'm trying to render the intersection of two cylinders here. Everything runs fine when output is an HTML file, but changing the outformat to PDF or PNG produce the following output on terminal:
X Error of failed request: GLXBadFBConfig
Major opcode of failed request: 153 (GLX)
Minor opcode of failed request: 0 ()
Serial number of failed request: 43
Current serial number in output stream: 43
I'm totally clueless on what's going on. Here is the asy file content:
import solids;
settings.outformat = "html";
currentprojection=orthographic(3,2,3);
limits((-2,-2,-2),(2,2,2));
currentlight=light(white,(2,2,2),(2,-2,-2));
revolution cil=cylinder((-1.5,0,0),1,3,(3,0,0));
surface s1 = surface(cil);
surface s2 = rotate(90,Z)*surface(cil);
draw(s1, lightblue+opacity(0.8));
draw(s2, orange+opacity(1.0));
And the "trimmed" version of it:
import graph3;
settings.outformat = "html";
currentprojection=orthographic(3,2,3);
limits((-2,-2,-2),(2,2,2));
currentlight=light(white,(2,2,2),(2,-2,-2));
triple cil1(pair z) {
real r=z.x;
real t=z.y;
real x=-r*sqrt(1-t^2);
real y=-sqrt(1-t^2);
real z=t;
return (x,y,z);
}
surface s1 = surface(cil1,(-1,-1),(1,1),nu=1,nv=200);
surface s2 = reflect(O,X,Z)*s1;
surface s3 = rotate(90,Z)*s1;
surface s4 = rotate(-90,Z)*s1;
draw(s1,lightblue); //+opacity(0.8));
draw(s2,lightblue); //+opacity(0.8));
draw(s3,orange); //+opacity(0.8));
draw(s4,orange); //+opacity(0.8));
Please let me know if anything else will help to understand the
problem.
Best, Alexandre