I had posted a link to my bones.inc forward kinematics include file here about
ten years ago. The link is of course old and broken though, so I just uploaded
it to GitHub:
bones.inc allows you to create complex skeletons and attach POVray objects to
them. Included on the git are a huge readme file and two sample POVray files
that use bones.inc, one for animating a bipedal robot and another with a snake.
For the robot, the skeleton is defined right down to the finger bones.
Animation is accomplished by establishing a Pose for a skeleton, where each
joint angle is specified, and then interpolating between Poses according to the
clock value. Chains of these interpolations can create some very complex
skeleton movements with very little code.
Post a reply to this message