POV-Ray : Newsgroups : povray.animations : animation: streching of a cylinder Server Time
8 Jul 2024 14:22:34 EDT (-0400)
  animation: streching of a cylinder (Message 1 to 5 of 5)  
From: Tanju Gurel
Subject: animation: streching of a cylinder
Date: 19 Mar 2002 04:54:37
Message: <3c970add@news.povray.org>
hi....
i have a cylinder...
for example
from <0,0,0> to <1,1,1>
and i want it to animate to
<0,0,0> to <2,2,2>
one side of the cylinder will stay.....
can you help me?

thanks...
tanju


Post a reply to this message

From: Jérôme Grimbert
Subject: Re: animation: streching of a cylinder
Date: 19 Mar 2002 05:14:58
Message: <3C970FAE.7F6390AA@atosorigin.com>
Tanju Gurel wrote:
> 
> hi....
> i have a cylinder...
> for example
> from <0,0,0> to <1,1,1>
> and i want it to animate to
> <0,0,0> to <2,2,2>
> one side of the cylinder will stay.....
> can you help me?

#local where_it_end = <1,1,1>+clock; 
/* or whatever you want as function which please you */
cylinder { 0, where_it_end,0.1 }


Then simply use +KI0 +KF1 +KFI1 +KFF50 on the command line or .ini
for a 50 frames rendering in which the cylinder extend from <1,1,1> to <2,2,2>.


Post a reply to this message

From: Tanju Gurel
Subject: Re: animation: streching of a cylinder
Date: 19 Mar 2002 06:54:31
Message: <3c9726f7@news.povray.org>
I have a sphere(atom)
it animates from <1,1,1> to <1.2,1,1>
and want cylinder(bond) to follow it...
from <0,0,0> to <1,1,1>
to
from <0,0,0> to <1.2,1,1>

thanks...
Tanju


news:3C970FAE.7F6390AA@atosorigin.com...
> Tanju Gurel wrote:
> >
> > hi....
> > i have a cylinder...
> > for example
> > from <0,0,0> to <1,1,1>
> > and i want it to animate to
> > <0,0,0> to <2,2,2>
> > one side of the cylinder will stay.....
> > can you help me?
>
> #local where_it_end = <1,1,1>+clock;
> /* or whatever you want as function which please you */
> cylinder { 0, where_it_end,0.1 }
>
>
> Then simply use +KI0 +KF1 +KFI1 +KFF50 on the command line or .ini
> for a 50 frames rendering in which the cylinder extend from <1,1,1> to
<2,2,2>.


Post a reply to this message

From: K
Subject: Re: animation: streching of a cylinder
Date: 9 Apr 2002 21:08:12
Message: <3cb3907c@news.povray.org>
just a minor note, I think Jerome meant
#local where_it_end = <1,1,1>*clock;
instead of + there is a *, since you aren't adding the clock value to the
point.

K

"Tanju Gurel" <tan### [at] ibuedutr> wrote in message
news:3c9726f7@news.povray.org...
> I have a sphere(atom)
> it animates from <1,1,1> to <1.2,1,1>
> and want cylinder(bond) to follow it...
> from <0,0,0> to <1,1,1>
> to
> from <0,0,0> to <1.2,1,1>
>
> thanks...
> Tanju
>

> news:3C970FAE.7F6390AA@atosorigin.com...
> > Tanju Gurel wrote:
> > >
> > > hi....
> > > i have a cylinder...
> > > for example
> > > from <0,0,0> to <1,1,1>
> > > and i want it to animate to
> > > <0,0,0> to <2,2,2>
> > > one side of the cylinder will stay.....
> > > can you help me?
> >
> > #local where_it_end = <1,1,1>+clock;
> > /* or whatever you want as function which please you */
> > cylinder { 0, where_it_end,0.1 }
> >
> >
> > Then simply use +KI0 +KF1 +KFI1 +KFF50 on the command line or .ini
> > for a 50 frames rendering in which the cylinder extend from <1,1,1> to
> <2,2,2>.
>
>


Post a reply to this message

From: Carn
Subject: Re: animation: streching of a cylinder
Date: 21 Aug 2002 15:40:14
Message: <web.3d63ec2220c3127ec07f6d7e0@news.povray.org>
K wrote:
>just a minor note, I think Jerome meant
>#local where_it_end = <1,1,1>*clock;
>instead of + there is a *, since you aren't adding the clock value to the
>point.
>
>K

if he's moving the sphere from <1,1,1> to <2,2,2> then <1,1,1>+clock (or
<1+clock,1+clock,1+clock>) works because you *are* adding the clock value
to the point.

Kevin Loney
http://www.geocities.com/qsquared_1999/


Post a reply to this message

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