POV-Ray : Newsgroups : povray.newusers : Scale animation problem Server Time
23 Nov 2024 23:24:09 EST (-0500)
  Scale animation problem (Message 1 to 7 of 7)  
From: gregtom6
Subject: Scale animation problem
Date: 1 May 2011 10:50:01
Message: <web.4dbd72e4493e38efc0be34760@news.povray.org>
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.


Post a reply to this message

From: StephenS
Subject: Re: Scale animation problem
Date: 1 May 2011 11:15:02
Message: <web.4dbd78932c2fbd23f62a37ee0@news.povray.org>
"gregtom6" <gre### [at] freemailhu> wrote:
....
> #if (clock<55)no_image
....
Unless you've changed it's behaviour, clock goes from 0 to 1 by default.
Look up the use of #debug to help with things like this.


Stephen S


Post a reply to this message

From: gregtom6
Subject: Re: Scale animation problem
Date: 1 May 2011 12:25:01
Message: <web.4dbd88702c2fbd23c0be34760@news.povray.org>
"StephenS" <nomail@nomail> wrote:
> "gregtom6" <gre### [at] freemailhu> wrote:
> ....
> > #if (clock<55)no_image
> ....
> Unless you've changed it's behaviour, clock goes from 0 to 1 by default.
> Look up the use of #debug to help with things like this.
>
>
> Stephen S

There's no problem with the clock's value, I think. All of the other animations
run perfectly, expect the one I said before.


Post a reply to this message

From: StephenS
Subject: Re: Scale animation problem
Date: 1 May 2011 12:50:01
Message: <web.4dbd8e482c2fbd2392d75f530@news.povray.org>
"gregtom6" <gre### [at] freemailhu> wrote:
> "StephenS" <nomail@nomail> wrote:
> > "gregtom6" <gre### [at] freemailhu> wrote:
> > ....
> > > #if (clock<55)no_image
> > ....
> > Unless you've changed it's behaviour, clock goes from 0 to 1 by default.
> > Look up the use of #debug to help with things like this.
> >
> >
> > Stephen S
>
> There's no problem with the clock's value, I think. All of the other animations
> run perfectly, expect the one I said before.

Does this not mean that for all frames you get 'no_image' as part of the object?

Stephen S


Post a reply to this message

From: Alain
Subject: Re: Scale animation problem
Date: 1 May 2011 13:27:54
Message: <4dbd981a$1@news.povray.org>

> 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


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Scale animation problem
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

From: Sherry Shaw
Subject: Re: Scale animation problem
Date: 3 May 2011 17:54:33
Message: <4dc07999$1@news.povray.org>
Trevor G Quayle wrote:
> 
> Make sure that these are set to the values you are expecting to use.
> 

Or perhaps he meant to use frame_number...?

Just a thought,
--Sherry Shaw

-- 
#macro T(E,N)sphere{x,.4rotate z*E*60translate y*N pigment{wrinkles scale
.3}finish{ambient 1}}#end#local I=0;#while(I<5)T(I,1)T(1-I,-1)#local I=I+
1;#end camera{location-5*z}plane{z,37 pigment{granite color_map{[.7rgb 0]
[1rgb 1]}}finish{ambient 2}}//                                   TenMoons


Post a reply to this message

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