POV-Ray : Newsgroups : povray.animations : How to animate 4-step bend? : How to animate 4-step bend? Server Time
8 Jul 2024 13:02:42 EDT (-0400)
  How to animate 4-step bend?  
From: Steve Shelby
Date: 29 Jan 2003 08:05:13
Message: <3e37d189$1@news.povray.org>
Hi,
I've been experimenting with Chris Colefax's object bender and have run into
a problem I can't figure out, with my limited experience. I need to have
four stages to the bend:
1. from zero to 40,-y
2. back to zero
3. from zero to 40, +y
4. back to zero
Here is what I have so far (creates the first stage):

 rotate
  From (0, <0, 0, 0>)
  Using ( "", 1, 1, "")
  To (1, <0, 0, 20> )
 scale
  From (0,<1,1,1>)
  Using ( "", 1, 1, "")
  To (1, <0.9,1,1>)
}
#declare object_axis1 = <1,0,0>;
   #declare object_axis2 = <3,0,0>;
   #declare bend_smoothness = 200;
   #declare bend_direction = -y;
   #declare bend_angle = 0+clock*40;
#include "bend.inc"

It can't go directly from -y to +y, so it can't be done in 2 stages. I know
there must be a way to accomplish this using autoClk or ClockMod, but the
bend is set up so much differently from other types of transformations that
I can't make sense out of any of the documentation as it would relate to
"bend".
Any help or suggestions on this will be appreciated.
Thank you,
Steve Shelby


Post a reply to this message

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