POV-Ray : Newsgroups : povray.newusers : clock and declared variables : Re: clock and declared variables Server Time
5 Sep 2024 18:23:07 EDT (-0400)
  Re: clock and declared variables  
From: Bob Hughes
Date: 3 Mar 2000 00:04:27
Message: <38bf47db@news.povray.org>
Good point Steve, if you were to scale or rotate that sphere you would be doing
so with it already moved and can't go back without some extra transformations
done to reverse it.
Changes in a primitives location vector are fine if the primitives are never to
be changed thereafter, just not a good common practice I would think.

Bob

"Steve" <sjl### [at] ndirectcouk> wrote in message
news:slr### [at] zero-ppslocaldomain...
| On Thu, 02 Mar 2000 18:55:58 -0500, CMcCabe wrote:
| >i was wondering if these two lines are feasible to move an object along
| >the x-axis, i can't seem to find an example of how to translate an
| >object along a linear path
| >#declare XPos = clock*10;
| >sphere { <XPos,0,0>, .5 }
| >
| >also, those lines should be the same as this one right?
| >sphere { <clock*10,0,0>, .5 }
| >
|
| Yes this should work fine, but personally I'd prefer
|
| sphere { <0,0,0>, .5
|          translate <clock*10,0,0>
|        }
|
| This will move the sphere from <0,0,0> to <10,0,0>.
|
|
|
| --
| Cheers
| Steve              email mailto:sjl### [at] ndirectcouk
|
| %HAV-A-NICEDAY Error not enough coffee  0 pps.
|
| web http://www.ndirect.co.uk/~sjlen/
|
| or  http://start.at/zero-pps
|
|  12:54am  up  1:07,  5 users,  load average: 1.18, 1.12, 1.03


Post a reply to this message

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