# Why my asymptote image is rendered like this?

After successful installation of Asymptote, when I execute a sample file why are there horizontal lines in the image (with pdflatex) but if I make it as a separate asy file and execute asy file.asy with settings.outformat="pdf" It is rendered well. What is the issue? Here is the tex source code:

\documentclass{standalone}
\usepackage{asymptote}

\begin{document}

\begin{asy}[width=10cm,height=10cm]
settings.prc=false;
import three;
draw(unitsphere);
\end{asy}

\end{document}


The foo-1.asy code:

if(!settings.multipleView) settings.batchView=false;
settings.tex="pdflatex";
defaultfilename="3dintersect-1";
if(settings.render < 0) settings.render=4;
settings.outformat="";
settings.inlineimage=true;
settings.embed=true;
settings.toolbar=false;
viewportmargin=(2,2);

settings.prc=false;
import three;
draw(unitsphere);
size(284.52756pt,284.52756pt,keepAspect=true);

• This looks like a bug somewhere; it compiles fine for me. I have two suggestions: 1) If your tex file is named foo.tex, try opening foo-1.asy and compiling it directly using asy. If the problem shows up there, then post the code for foo-1.asy; if not, it's a problem with the asymptote package. 2) This is a good time to be posting on the Asymptote help forum, as John Bowman (one of the creators) is actively trying to iron out bugs and irregularities. – Charles Staats May 11 '14 at 12:40
• @CharlesStaats can you come for a chat – subham soni May 11 '14 at 12:49
• Maybe later; my day is about to start. – Charles Staats May 11 '14 at 12:52
• It works fine for me with miktex, asymptote and winedt setup. Mau be something went wrong with your installation. – user11232 May 11 '14 at 13:08
• This may be a graphic card driver issue. I used to get some of these some times ago (linux support for some cards is rather poor). – cjorssen May 12 '14 at 19:42

For context, this is found in the description of the three module. It's listing the four ways of viewing 3d Asymptote output; this is in number 2 (using settings.render = n; to produce rasterized output).