<font face="Arial, Helvetica, sans-serif">Hello pstricksters,<br>
<br>
I'm trying to get transparency to work in a pdf document. Here is the code:<br>
<br>
&nbsp; \documentclass{article}<br>
&nbsp; \usepackage[distiller]{pstricks}<br>
&nbsp; \usepackage{pst-solides3d}<br>
<br>
&nbsp; \begin{document}<br>
<br>
&nbsp; \begin{pspicture}(5,5)<br>
&nbsp;&nbsp; \psset{fillstyle=solid}<br>
&nbsp;&nbsp; \psframe[fillcolor=red](0,1)(3,4)<br>
&nbsp;&nbsp; \psframe[fillcolor=blue,opacity=0.3](2,2)(5,5)<br>
&nbsp;&nbsp; \psframe[fillcolor=green,opacity=0.3](1,0)(4,3)<br>
&nbsp;&nbsp; \pscircle[fillcolor=cyan,opacity=0.5](1.5,3.5){1.25}<br>
&nbsp; \end{pspicture}<br>
<br>
&nbsp; \psset{unit=0.5}<br>
&nbsp; \begin{pspicture}(-8,-8)(8,8)<br>
&nbsp;&nbsp; \psSolid[object=cube,<br>
&nbsp;&nbsp;&nbsp; fillcolor=cyan,<br>
&nbsp;&nbsp;&nbsp; affinagecoeff=.5,<br>
&nbsp;&nbsp;&nbsp; affinagerm,<br>
&nbsp;&nbsp;&nbsp; fcolor=.7 setfillopacity Yellow,<br>
&nbsp;&nbsp;&nbsp; hollow,<br>
&nbsp;&nbsp;&nbsp; affinage=all,]<br>
<br>
&nbsp; \end{pspicture}<br>
<br>
Using ps2pdf I get transparency in the cube but not the other part. Using distiller I get transparency in the other part, but not the cube. This I can understand, because if the distiller option is used then setopacityalpha, inter alia, is redefined to do nothing by pstricks.pro under distiller. However, if I put the kludge<br>
<br>
&nbsp;&nbsp;&nbsp; /.setopacityalpha { [ exch /ca exch dup /CA exch /SetTransparency pdfmark } bind def<br>
<br>
in a particular place in pst-solides3d.tex (at the end of \pst_at_def{optionssolides} to be exact) then I get transparency in both parts! This shows it must be possible to have transparency working for both packages under distiller. However, in the absence of more extensive testing this workaround does not strike me as robust.<br>
<br>
Incidentally, without the distiller option there is no transparency in either part, as expected (ps2pdf is unaffected.)<br>
<br>
To make pst-solides3d compatible with distiller is the problem. Any thoughts?<br>
<br>
Gerry Coombes<br>
</font><div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
<b>AOL Email goes Mobile!</b> You can now read your AOL Emails whilst on the move. <a href="http://info.aol.co.uk/email1" target=_blank>Sign up</a> for a free AOL Email account with unlimited storage today.<br />
</div>