POV-Ray : Newsgroups : povray.programming : Which codes are about the process of the translation Server Time
23 Dec 2024 06:58:26 EST (-0500)
  Which codes are about the process of the translation (Message 1 to 2 of 2)  
From: Wu Yang
Subject: Which codes are about the process of the translation
Date: 12 Dec 2002 22:32:11
Message: <3df954bb@news.povray.org>
Hi, all
  I am now trying to track a moving object. I set clock in translate to make
the object move. For example, add  translate <-7*clock*clock,0,-clock> into
an object description. I want to know which codes are about the process of
the translation. Thanks

Wu Yang


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Which codes are about the process of the translation
Date: 13 Dec 2002 08:52:34
Message: <3df9e622$1@news.povray.org>
In article <3df954bb@news.povray.org> , "Wu Yang" <wya### [at] cswrightedu> 
wrote:

>   I am now trying to track a moving object. I set clock in translate to make
> the object move. For example, add  translate <-7*clock*clock,0,-clock> into
> an object description. I want to know which codes are about the process of
> the translation. Thanks

For all objects but those which are trivial to translate POV-Ray implements
the translation as part of the transformation matrix.  The code for matrices
can be found in matrices.cpp.  The transformation is part of an object can
can be found in the "Trans" member, which is a pointer to a "TRANSFORM".

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.