POV-Ray : Newsgroups : povray.animations : Camera/Object/Clock : Re: Camera/Object/Clock Server Time
28 Sep 2024 09:13:07 EDT (-0400)
  Re: Camera/Object/Clock  
From: Hughes, B 
Date: 7 May 2004 00:31:41
Message: <409b112d$1@news.povray.org>
"tgl" <tgl### [at] canadacom> wrote in message
news:web.40982827a6d5375263b449400@news.povray.org...
>    1. The camera will travel in a straight line, looking straight ahead,
> beginning at point A where it's speed is zero. Between point A and B,
speed
> gradually increases to a set value and then maintains that set value speed
> from point B to point C. At point C, speed decreases to 0 at point D. Can
> this entire sequence be related to clock?

What Dennis Miller suggested will help for that (clock modifier macro). In
fact, also for what's asked about below by using the macro, possibly.

>    2. In the above sequence, at some pre-determined period during the time
> the camera is travelling from point B to C, an object crosses the camera's
> path. The object and the camera will be in proximity of one another and
the
> camera will see it. When the object is about to leave the camera's frame
of
> view, regardless of the object's direction, the camera will pan to follow
> the object briefly and then resume its previous view; like a glancing
look.
> Could the camera's motion to "look_at" the object's passage be controlled
> by clock?

You can use a #switch directive that has #range within it. Basically, you'll
need to know the time values where the interaction takes place and apply
them to #range ( ) /*change something here*/  #break so that only that
segment of clock does something. The example in the documentation should
suffice to let you know how it works (no need for #case part). If not, keep
asking questions.

Bob H.


Post a reply to this message

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