Closed balducci closed 1 year ago
First of all, remember that -render=0
is an experimental attempt at flattening 3D images to 2D PostScript and is not recommended for normal use. See https://asymptote.sourceforge.io/doc/three.html
If you remove -render=0
you will see that the first image perfectly captures 3D lighting effects (in this simple planar case. To achieve the second image with or without -render=0
, either use emissive lighting or disable lighting completely:
draw(surface(O--(1,0,0)--(1,0,1)--(0,0,1)--cycle),emissive(yellow));
draw(surface(O--(0,1,0)--(0,1,1)--(0,0,1)--cycle),yellow,nolight);
Finally, since PRC is deprecated, the default is now -noprc
.
hello
this commit:
breaks the following script for me:
run as either:
or:
The color of the first
draw(surface(...
looks wrong; the seconddraw(surface(...
command produces a black surface; eg, for-f eps
and usinggv
:Reverting the above commit fixes things:
Attaching a shell script which you can use to reproduce the problem testit.txt
Running on GNU/linux:
Configuring asy with:
Building with:
Rendering the output on screen with:
thanks a lot for your valuable work ciao -gabriele