After remove "ambientpen=gray(0.0)" and "viewport=false", the code can be correctly complied. Thanks a lot! @John Bowman
Recently, I installed asymptote 2.77_1 from homebrew in my Mac (macOS Monterey, Intel CPU). When I use this installed asy for following code: import graph3; import three; //import three_light; unitsize(1cm/2); defaultpen(1pt); defaultpen(Helvetica()); usepackage("bm"); // viewpoint currentlight=light(white,viewport=false ,(-5,-5,20),(20,20,-1) ); material Gray=material(diffusepen=gray(0.5)+opacity(1.0),emissivepen=gray(0.0) ,ambientpen=gray(0.0),specularpen=gray(1.0)); I got error message as currentlight=light(white,viewport=false...
I want to lable a transparent png file by pdflatex import settings; tex="pdflatex";...