POV-Ray : Newsgroups : povray.animations : Move fast then slow down? Server Time
24 Nov 2024 11:38:11 EST (-0500)
  Move fast then slow down? (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: Shawn S
Subject: Move fast then slow down?
Date: 2 Aug 2000 20:00:16
Message: <3988B602.BAF223EA@acns.fsu.edu>
I'm very new to povray(less than two weeks) but I'm making great
strides. I just need help with one part of an animation that I doing.
Here is the code and see if you can help me out with the last part
please. (the ? is at the bottom)

   #if ( clock <= 1 )
    camera { location <1.4, 11.5, .11>
             look_at <1.4, 0, .11>
      translate <0,-clock*9,0>
      }

    #else
     #if (clock <= 2)
      #declare Clock1 = clock -1;
      camera { location <1.4, 1.70, .11>
              look_at <1.4, 0, 1>
     rotate <Clock1*-65,0 , 0>
     //translate <0, -clock*1,0>


       }
     #else
      #if (clock >2)
       #declare ElseClock = clock - 2;


       camera { location <1.4,.9, -1.5>
               look_at <1.4, .9, 1>
        translate <0,0,-2*1>
        rotate <0,0,0> }

     #end
     #end
     #end
 I want the camera to move back fast at first but then slow down. Can
anyone help me out. Also(This isn't as bad a problem) can anyone suggest
on how to smooth out the whole operation. There is a text object  that
the camera dives down on the rotates back to show the message then I
want to to fly off backwards then slowdown. If I'm not getting my point
across email me at

sjs### [at] garnetacnsfsuedu

Thanks
    Shawn


Post a reply to this message

From: ryan constantine
Subject: Re: Move fast then slow down?
Date: 2 Aug 2000 20:32:49
Message: <3988BD8D.2974105C@yahoo.com>
chris colfax has an animation setup for pov that includes all kinds of
acceleration and deceleration.  find a link to it from the pov links at
pov.org.  don't reinvent the wheel.

Shawn S wrote:
> 
> I'm very new to povray(less than two weeks) but I'm making great
> strides. I just need help with one part of an animation that I doing.
> Here is the code and see if you can help me out with the last part
> please. (the ? is at the bottom)
> 
>    #if ( clock <= 1 )
>     camera { location <1.4, 11.5, .11>
>              look_at <1.4, 0, .11>
>       translate <0,-clock*9,0>
>       }
> 
>     #else
>      #if (clock <= 2)
>       #declare Clock1 = clock -1;
>       camera { location <1.4, 1.70, .11>
>               look_at <1.4, 0, 1>
>      rotate <Clock1*-65,0 , 0>
>      //translate <0, -clock*1,0>
> 
>        }
>      #else
>       #if (clock >2)
>        #declare ElseClock = clock - 2;
> 
>        camera { location <1.4,.9, -1.5>
>                look_at <1.4, .9, 1>
>         translate <0,0,-2*1>
>         rotate <0,0,0> }
> 
>      #end
>      #end
>      #end
>  I want the camera to move back fast at first but then slow down. Can
> anyone help me out. Also(This isn't as bad a problem) can anyone suggest
> on how to smooth out the whole operation. There is a text object  that
> the camera dives down on the rotates back to show the message then I
> want to to fly off backwards then slowdown. If I'm not getting my point
> across email me at
> 
> sjs### [at] garnetacnsfsuedu
> 
> Thanks
>     Shawn


Post a reply to this message

From: Bob Hughes
Subject: Re: Move fast then slow down?
Date: 2 Aug 2000 22:49:43
Message: <3988ddc7@news.povray.org>
"ryan constantine" <rco### [at] yahoocom> wrote in message
news:3988BD8D.2974105C@yahoo.com...
| chris colfax has an animation setup for pov that includes all kinds of
| acceleration and deceleration.  find a link to it from the pov links at
| pov.org.  don't reinvent the wheel.

Exactly.  Were you to use the ClockMod.inc file you would put:

#declare clock_type="D"
#include "clockmod.inc"
#declare Decel=mclock;

Then use Decel in place of 'clock' where you want the deceleration.
To combine different types just add this:

#declare clock_combine="W"

before the include line and you will get a wave, or back and forth movement
that also slows down.
Also using separate declarations for individual parts of movement too:

#declare clock_type="D"
#include "clockmod.inc"
#declare Decel=mclock;

#declare clock_type="W"
#include "clockmod.inc"
#declare Wave=mclock;

and put those in where most likely to go, like one for z translation and
other for y.  Hope that made sense.
Plenty is possble just using the include, but there is a macro now too.

Bob


Post a reply to this message

From: Karl Pelzer
Subject: Re: Move fast then slow down?
Date: 3 Aug 2000 13:38:48
Message: <3989AE8C.7C382C68@t-online.de>
> Plenty is possble just using the include, but there is a macro now too.

Yep! The macro is very powerful and handy. Try it out.

Karl


Post a reply to this message

From: Ken
Subject: Re: Move fast then slow down?
Date: 3 Aug 2000 14:06:39
Message: <3989B2F2.A21E9AA0@pacbell.net>
ryan constantine wrote:
> 
> chris colfax has an animation setup for pov that includes all kinds of
> acceleration and deceleration.  find a link to it from the pov links at
> pov.org.  don't reinvent the wheel.

Colefax - http://www.geocities.com/SiliconValley/Lakes/1434/

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Mike
Subject: Re: Move fast then slow down?
Date: 3 Aug 2000 15:41:51
Message: <3989CB06.D6B6E14E@aol.com>
> Yep! The macro is very powerful and handy.

The macro absolutely rules.  Not only did he invent the wheel, he
perfected it as well. ;)

-Mike


Post a reply to this message

From: Josh English
Subject: Re: Move fast then slow down?
Date: 3 Aug 2000 18:16:16
Message: <3989EE7F.1EE9EBF8@spiritone.com>
But some of us like reinventing the wheel. Honestly.

I have a poorly defined system for this, but it kind of explains how to
do it yourself at
http://www.spiritone.com/~english/animaker/animaker.html

Josh

Mike wrote:

> > Yep! The macro is very powerful and handy.
>
> The macro absolutely rules.  Not only did he invent the wheel, he
> perfected it as well. ;)
>
> -Mike

--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Move fast then slow down?
Date: 4 Aug 2000 07:50:13
Message: <398AACC4.2075B0D0@my-dejanews.com>
First of all, the clock moves from 0 to 1, so the code you posted will meet
problems.

If you want something to move quickly at first then slowly, say:
    translate <0,-sqrt(clock),0>        //think how y=sqrt(x) varies from 0
to 1

If you want something to move slowly at first then speed up, say:
    translate <0,-sqr(clock),0>        //think how y=sqr(x) varies from 0 to
1


Post a reply to this message

From: Peter Popov
Subject: Re: Move fast then slow down?
Date: 4 Aug 2000 11:29:34
Message: <p5olos0mhvoh0qnmmg5ssj0dd2os0molaf@4ax.com>
On Fri, 04 Aug 2000 07:45:08 -0400, "Greg M. Johnson"
<gre### [at] my-dejanewscom> wrote:

>First of all, the clock moves from 0 to 1, so the code you posted will meet
>problems.

Not necessarily true, it defaults to [0..1] but you can adjust it by
the +ki and +kf switches.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: ryan constantine
Subject: Re: Move fast then slow down?
Date: 4 Aug 2000 11:31:01
Message: <398AE18F.C55947A5@yahoo.com>
or change the start and end in your ini file.

Peter Popov wrote:
> 
> On Fri, 04 Aug 2000 07:45:08 -0400, "Greg M. Johnson"
> <gre### [at] my-dejanewscom> wrote:
> 
> >First of all, the clock moves from 0 to 1, so the code you posted will meet
> >problems.
> 
> Not necessarily true, it defaults to [0..1] but you can adjust it by
> the +ki and +kf switches.
> 
> Peter Popov ICQ : 15002700
> Personal e-mail : pet### [at] usanet
> TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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