\documentclass{article}
\usepackage{pst-solides3d,pst-node,pst-plot,multido,url}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{colortbl}
\usepackage{array}
\usepackage[a4paper,bottom=2.5cm,top=2cm]{geometry}
%%\usepackage[frenchle]{babel}
\makeatletter

\title{\texttt{pst-solides3d} :\\
       Test 1}
\date{\today }
\begin{document}
\maketitle

%\psset{lightsrc=10 20 30,viewpoint=50 20 30 rtp2xyz}
\psset{viewpoint=50 20 30 rtp2xyz}

\section {Test opacity avec PSTricks}


\begin{center}
\psset{unit=0.75}
\psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50}
\begin{pspicture*}(-5,-4)(6,9)
\psframe(-5,-4)(6,9)
\psSolid[object=grille,
   base=-2 2 -2 2,
   fillcolor=yellow,
   opacity=.3]
\psSolid[object=grille,
   base=-2 2 -2 2,
   fillcolor=blue,
   opacity=.3](0,0,1)
\end{pspicture*}
\end{center}

\section {Test opacity avec jps}


\begin{center}
\psset{unit=0.75}
\psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50}
\begin{pspicture*}(-5,-4)(6,9)
\psframe(-5,-4)(6,9)
\codejps{
-2 2 -2 2 newgrille
%%dup [.5 .6] solidputhuecolors
dup (.3 setfillopacity jaune) outputcolors
drawsolid*
-2 2 -2 2 newgrille
{0 0 1 translatepoint3d} solidtransform
%%dup [.5 .6] solidputhuecolors
dup (.3 setfillopacity bleu) outputcolors
drawsolid*
}
\end{pspicture*}
\end{center}

\end{document}
