vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
542 stars 90 forks source link

Missing labels in flattened 3D scene (using settings.render=0) after update to version 2.90. #467

Closed stoicbrain closed 1 month ago

stoicbrain commented 1 month ago

I updated my asymptote version on windows 10 x64 from 2.89 to 2.90. After the update the attached asy-file compiles to a PDF but the Labels are missing. Going back to version 2.89 everthing works fine.

See the attached asymptote source file and the produced PDFs in the ZIP file.

AsymptoteLabelProblem.zip

johncbowman commented 1 month ago

The underlying cause of the problem is that you used settings.render=0; simply remove that line from your file.

The line settings.prc=false; might as well be removed too since that has been the default for some time now.

Note that settings.render=0 is an experimental attempt at flattening 3D graphics to postscript; it is not intended for general use and will only produce reasonable results in very special cases, as explained in the documentation. We will nevertheless look into restoring support for labels in this "poor man's" graphics mode.