[pstricks] pst-solides3d and animate

mathias legrand legrand.mathias at gmail.com
Wed Aug 11 18:08:08 CEST 2010


Hi all,

please consider the example below. I do not know why the first example 
cannot compile.
Should I use multido loops instead? but I am happy with the command bar 
(play, pause, back..)
of the animate package. Thank you

Mathias

\documentclass{article}
\usepackage{lipsum}
\usepackage{pst-solides3d}
\usepackage{pstricks-add}
\usepackage{animate}

\pagestyle{empty}

\begin{document}

% not working example
\begin{figure}[h]\centering
\begin{animateinline}[poster=last, controls, palindrome]{25}%
\multiframe{25}{rAngle=10+0.2}{%
\begin{pspicture}[showgrid=true](-5,-5)(5,5)
\psset{viewpoint=50 \rAngle 20,Decran=50}%
\psSolid[object=cube,a=2,action=draw*,fillcolor=magenta!20]%
\end{pspicture}}
\end{animateinline}
\end{figure}

% working example
\begin{figure}[h]\centering
\begin{animateinline}[poster=last, controls, palindrome]{25}%
\multiframe{25}{rAngle=10+0.2}{%
\begin{pspicture}[showgrid=true](-5,-5)(5,5)
\psset{viewpoint=50 20 \rAngle,Decran=50}%
\psSolid[object=cube,a=2,action=draw*,fillcolor=magenta!20]%
\end{pspicture}}
\end{animateinline}
\end{figure}

\end{document}


More information about the PSTricks mailing list