POV-Ray : Newsgroups : povray.advanced-users : Clock Problem (or question) : Re: Clock Problem (or question) Server Time
30 Jul 2024 00:23:10 EDT (-0400)
  Re: Clock Problem (or question)  
From: John VanSickle
Date: 23 Jul 2000 14:19:52
Message: <397B3775.E161074F@erols.com>
"H. E. Day" wrote:
> 
> Ok, here's what I have.
> I've got a spline{} declared.  When the (say I'm only using the x
> variable) value of this spline is over one I want to: create a
> projectile, save the current clock value, and use that saved value to
> achieve rotation and translation based on two other splines. Then I
> want to move the projectile along a straight path at a constant rate.
> I have no idea how to do this.
> 
> Does this explain what I need well enough?

The way I go about doing this is to figure out what time the spline
reaches the point in question, and then use an #if-#else-#end block
to model the motion before and after this time.

It is highly likely that the precise time will fall at a period
between the time of two different frames; hence at the latter of the
two frames, some of the motion after the event will already have
occured.

Now this technique is more difficult (possibly way more difficult),
but kids your age have it so easy that a little hard thinking is
good for you :-)

Seriously, the resulting code will produce the same result for any
frame rate and will be more accurate in the modelling.

Regards,
John
-- 
ICQ: 46085459


Post a reply to this message

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