POV-Ray : Newsgroups : povray.binaries.animations : ik walk : Re: ik walk Server Time
20 Jul 2024 13:21:36 EDT (-0400)
  Re: ik walk  
From: Reusser
Date: 1 Jun 2001 18:06:24
Message: <3B181199.60BA5D@chorus.net>
Rune wrote:

> Is that what you're doing too
> or is your method more sophisticated? I didn't quite understand your
> explanation.

Actually, I spliced three graphs together so the output length follows the red
line simply using #if( ) statements (yes, I know a switch staement would be
much easier).  The graph shows the length between the hip and ankle points on
the x-axis and the adjusted length of the limb on the y-axis.

The equation for the parabola is just:
y =  maximum length  - 1/4  *  1 / cushion  * ( x  -  cushion  -  maximum
length ) ^ 2

This allowed me to set a specific zone where the limb would resist full
extension.  It works pretty well based on my experiments.  In one example I
tried, I just bounced the hip point straight up and down and the legs followed
the jump without snapping at all.

 - Rico


Post a reply to this message


Attachments:
Download 'graph.jpg' (19 KB)

Preview of image 'graph.jpg'
graph.jpg


 

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