POV-Ray : Newsgroups : povray.animations : multistage with spline generator? Server Time
24 Nov 2024 05:37:57 EST (-0500)
  multistage with spline generator? (Message 1 to 3 of 3)  
From: murat
Subject: multistage with spline generator?
Date: 28 Apr 2002 08:27:07
Message: <3CCBEAB8.9326415C@yahoo.com>
hi to all.

Despite being a quite newbie on POVRAY, I'm in a hurry to finish an
animation idea. I planned 2 steps of movement and in order to ease the
work I chose Chris Colefax's Spline Generator .

Assuming that clock is from 0 to 1, how can I achieve the animation
below to play only during "from 0.0 to 0.5" ? I only want to move the
camera during the remaining part.

sample object:
------------------------
object { objectx
                 //#declare spline_clock = clock //what should I write
here?
                 #include "mySpline1.spl"
                 translate spline_pos
                 no_shadow
                 }

thanks in advance and forgive me if the question is too easy!.

Murat


Post a reply to this message

From: TinCanMan
Subject: Re: multistage with spline generator?
Date: 28 Apr 2002 11:40:37
Message: <3ccc17f5$1@news.povray.org>
perhaps:

> object { objectx


#switch (clock)
  #range (0,0.5)
    #declare spline_clock = clock;
   #break

  #else

    #declare spline_clock = 0.5;
#end



>                  #include "mySpline1.spl"
>                  translate spline_pos
>                  no_shadow
>                  }
>
> thanks in advance and forgive me if the question is too easy!.
>
> Murat
>

-tgq


Post a reply to this message

From: Alan Holding
Subject: Re: multistage with spline generator?
Date: 28 Apr 2002 14:47:02
Message: <3ccc43a6$1@news.povray.org>
"murat" <pix### [at] yahoocom> wrote in message
news:3CCBEAB8.9326415C@yahoo.com...
> hi to all.
>
[snip!]

Simple:

#declare spline_clock=clock/2;

More involved: Use Chris Colefax's Automatic Clock Modification macro
(autoclck.mcr), but it only works fully with v3.1 at the moment.

You declare a variable to go from 0 to 0.5 based on the clock going from 0
to 1, like this:

#declare your_clock=(
    From (0, 0)
    To (1,0.5)
);

#declare spline_clock=your_clock;

Hope this useful,
Alan.


Post a reply to this message

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