[pstricks] pst-solides3d and external files (colours)

Herbert Voss Herbert.Voss at fu-berlin.de
Fri Mar 29 09:20:18 CET 2024



Am 27.03.24 um 22:38 schrieb Leonardo via PSTricks:
> and run latex + dvips + gs as:
>
> $ latex pst3d.tex
> $ dvips pst3d.dvi
> $ gs -dNOSAFER pst3d.ps

I suppose that you are missing  -dALLOWPSTRANSPARENCY
However, run this with lualatex

\DocumentMetadata{}
\documentclass{article}
\usepackage{pstricks,pst-solides3d}
\begin{document}
\begin{pspicture}(-5,-3.5)(4,3)
\psset{lightsrc=80 30 30}
\psset{viewpoint=100 60 20 rtp2xyz,Decran=75}
\psframe*[linecolor=cyan!30](-4.5,-3)(3.5,3)
\psSolid[object=datfile,filename=horoptere]
\end{pspicture}
\end{document}

and you'll get the pdf without using GhostScript. It is, of course,
slower than gs.

Herbert


More information about the PSTricks mailing list.