POV-Ray : Newsgroups : povray.general : clock negative value ? : Re: clock negative value ? Server Time
8 Jul 2024 13:20:12 EDT (-0400)
  Re: clock negative value ?  
From: Le Forgeron
Date: 9 Oct 2014 15:58:06
Message: <5436e8ce$1@news.povray.org>
On 09/10/2014 21:28, rodv92 wrote:
> Hello group, have you ever tried to use clock negative values ?
> 
> I have seriously miscalculated a motion equation based on clock and the easiest
> solution would involve setting clock negative value to have the motion describe
> a deceleration motion if clock is negative in the form :
> 
> z = -(1/2)*(clock)^2 + zpos1*clock + zpos2
> 
> and if positive :
> 
> z = 1/2*(clock)^2 + zpos1*clock  + zpos2
> 
> That vould make the object decelerate, nearly stop for clock = 0 and then
> accelerate again without me having to modify rhe rest of the scene which would
> be quite a long task.
> 
> and it would be quite neat, too.
> 
> 
> but is does not seem to work, alas.

I had no problem with :

povray -Ivor.pov +W640 +H480 +A0.01 +KI-2 +KF5 +KFI0 +KFF10

debug show clock from -2 to 5, in 11 frames.

What was your line like ?
-- 
IQ of crossposters with FU: 100 / (number of groups)
IQ of crossposters without FU: 100 / (1 + number of groups)
IQ of multiposters: 100 / ( (number of groups) * (number of groups))


Post a reply to this message

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