POV-Ray : Newsgroups : povray.newusers : Scale animation problem : Re: Scale animation problem Server Time
2 Jul 2024 11:18:57 EDT (-0400)
  Re: Scale animation problem  
From: Trevor G Quayle
Date: 2 May 2011 08:20:00
Message: <web.4dbea0912c2fbd2381c811d20@news.povray.org>
Alain <aze### [at] qwertyorg> wrote:

> > Hy all!
> >
> > My problem is the following:
> > #declare sk=1;
> > #if (clock<55)no_image
> > #end
> > #if(clock>=55)
> > #if((clock-54)*5<25.9)#declare sk=(clock-54)*5;
> > #else #declare sk=25.9;
> > #end
> > #end
> > scale<sk,sk,sk>
> >
> > When clock reaches the 55 value, it should be scale in every clock after that,
> > and when sk would be =30, then it scale get 25.9.
> > My problem is nothing happens. But why?
> > the object I try to animate remains invisible.
> > Help me, pls.
> >
> > If I write scale 25.9, the object appeares good.
> >
> >
> >
> Clock goes from 0 to 1.
> You test if it's value is OVER 55! It can NEVER reatch that value.
>
> Maybe you want to test for 0.55 instead...
>
>
>
> Alain

This is true by default, but you can set the clock range in the master ini:

Initial_Clock = ...
Final_Clock = ...


Make sure that these are set to the values you are expecting to use.

One way to try to further debug this is to trace the actual value of clock to
ensure it is set to the value expected


-tgq


Post a reply to this message

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