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

Herbert Voss Herbert.Voss at FU-Berlin.DE
Tue Jun 7 20:09:09 CEST 2011

-------- 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))*

--
Pedro Sacramento
Mestrando em Ciência da Computação - UFV
--
# Arquiteto e urbanista
# Técnico em Informática Industrial
# CREA - MG 123885LP
--
# ETEV - Escola Técnica de Viçosa
# www.etev.com.br | (31) 3891-0404
--
Respondeu-lhe Jesus: Eu sou o caminho, e a verdade, e a vida; ninguém vem ao
Pai, senão por mim. (João 14:6)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: yofla.com.zip
Type: application/zip
Size: 751789 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20110607/a4f35393/attachment-0001.zip>


More information about the PSTricks mailing list