# [pstricks] Fwd: PSTricks tip about 3D Rotation

Leon Free leon.free at free.fr
Wed Jun 8 09:45:46 CEST 2011

pedro,
is what you want to do something like this ?
http://leon.free.free.fr/mco_anim.pdf
(it requires acrobat reader for playing the animation)

Le 07/06/2011 20:09, Herbert Voss a écrit :
> -------- Original-Nachricht --------
> Betreff: PSTricks tip about 3D Rotation
> Datum: Tue, 7 Jun 2011 09:34:28 -0300
> Von: Pedro Sacramento <pedro.sacramento at gmail.com>
> An: pedro sacramento <pedro.sacramento at gmail.com>
>
> Hello,
>
> I'm a new *pst-solides3d* user and I've been trying to use it to make an
> interactive 3D geometry like the sample above (the attached zip has the
> complete set of images too, if you want to see):
> http://www.yofla.com/flash/3d-rotate/classic/examples.php?exampleId=1
>
> I'll be really thankfull if you can help me with a tip about manipulating
> the geometry in 3D space, I still wasn't able to figure it out, even though
> I'm making many tests with the manual.
>
> And my question is:  *I already know how to rotate the 3D object around Z.
> But how can I move the camera from the top to the bottom of the image,
> always looking to the origin of the graph and keeping constant distance
> from
> the origin? I believe that a multido procedure can easily tackle it, to
> generate all the 272 images.*
>
>  \begin{pspicture}[RotX=*0*,RotY=*0*,RotZ=*\$z*](-6,-8)(7,8)
>  \psSurface[ngrid=.25 .25,incolor=yellow,
>  linewidth=0.5\pslinewidth,
>  algebraic,hue=0 1](-4,-4)(4,4){%
>  ((y^2)-(x^2))/4 }
>  \end{pspicture}
>
> Best regards and thaks a lot,
>
> *P.S.: As far as I can see, It's basically a 16x17 matrix of images where Z
> rotation increases 22,5º (360º/16 steps) degrees as j increases. Also the
> camera moves downwards as i increases (always looking to the origin of the
> graph). It must start looking the object from the top and then move down
> until looking to the bottom of it. The camera keeps in constant distance
> from origin while moving from top to bottom))*
>
>
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/