POV-Ray : Newsgroups : povray.binaries.animations : Non-linear movement Server Time
3 Jul 2024 02:25:04 EDT (-0400)
  Non-linear movement (Message 1 to 5 of 5)  
From: Greg M  Johnson
Subject: Non-linear movement
Date: 11 Nov 2005 22:38:47
Message: <437563c5@news.povray.org>
Did some tweaking with a way to get non-linear movement.  I'd had one
before, but when I actually plotted the curve, it was embarassing how
little deviation from linearity there was.

Now I've got it set up, perhaps too strongly, with a cos()^n, n<1 function.
A buggy version of this code is release in my recent p.g. posting.

So the point is to see to what extent the movement in the raising of the
hand is like that of a real human, not that it's thematically releveant
that a guy would be doing that.


Post a reply to this message


Attachments:
Download 'file04.mpg' (146 KB)

From: scott
Subject: Re: Non-linear movement
Date: 12 Nov 2005 08:41:22
Message: <4375f102@news.povray.org>
"Greg M. Johnson" <p t e r a n d o n @
thecommononethatstartswithY.com> wrote in message
news:437563c5@news.povray.org
> Did some tweaking with a way to get non-linear movement.  I'd had
> one before, but when I actually plotted the curve, it was
> embarassing how little deviation from linearity there was.
>
> Now I've got it set up, perhaps too strongly, with a cos()^n, n<1
> function. A buggy version of this code is release in my recent p.g.
> posting.
>
> So the point is to see to what extent the movement in the raising
> of the hand is like that of a real human,

Doesn't look quite right to me.  Have you tried something like 
cos(x)*e^(-kx) which would represent a standard mass/spring/damper system? 
To a first approximation, that's how our muscles work.


Post a reply to this message

From: John VanSickle
Subject: Re: Non-linear movement
Date: 12 Nov 2005 11:23:04
Message: <437616e8$1@news.povray.org>
Greg M. Johnson wrote:

> Did some tweaking with a way to get non-linear movement.  I'd had one
> before, but when I actually plotted the curve, it was embarassing how
> little deviation from linearity there was.
> 
> Now I've got it set up, perhaps too strongly, with a cos()^n, n<1 function.
> A buggy version of this code is release in my recent p.g. posting.
> 
> So the point is to see to what extent the movement in the raising of the
> hand is like that of a real human, not that it's thematically releveant
> that a guy would be doing that.

I have this macro that I use in every animation:

#macro Transition(Start,End,Swerve,Phase)
   #local tP=min(1,max(0,Phase))*pi;
   #local aL=(1-cos(tP))/2;
   #local aS=(1-cos(tP*2))/2;
   ( (Start)+(End-Start)*aL + (Swerve)*aS )
#end

This is quite good for most applications.  Start and End are 
self-explanatory.  Swerve allows movement to the side at the mid-point 
of the motion.  Phase controls the timine of the motion, so for 
animations you should put a clock-based value in here.

Hope this helps,
John


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Non-linear movement
Date: 15 Nov 2005 20:57:28
Message: <437a9206@news.povray.org>
I cannot post an empty message.


Post a reply to this message


Attachments:
Download 'file063.mpg' (202 KB)

From: Kyle
Subject: Re: Non-linear movement
Date: 15 Nov 2005 21:10:44
Message: <575ln1pfc0sdv9roj89javd9ip523tqkiq@4ax.com>
His movements look kind of like a white rapper.  Maybe you could add
some music and agressive lyrics?  ;-)


Kyle


Post a reply to this message

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