POV-Ray : Newsgroups : povray.binaries.animations : Re: Snake! WIP : Re: Snake! WIP Server Time
19 Jul 2024 08:20:57 EDT (-0400)
  Re: Snake! WIP  
From: Steve Shelby
Date: 23 Sep 2003 13:38:50
Message: <3f70852a@news.povray.org>
On further thought, I came to realize that the spline in my animation was
oriented along the x axis, on the x-y plane. All of the snake parts had to
be facing +z in order to be oriented correctly on the spline, in keeping
with the rules of the Spline Macro.
Steve

"Steve Shelby" <ssh### [at] rexnetnet> wrote in message
news:3f704f05$1@news.povray.org...
> Dave,
> Thanks again for the info. I think it will work. One question: Can I make
> the spline point and move in the opposite direction? I tried it out with
my
> 243 snake parts ( to get the right match, I reduced the array down from
103
> to 23), and the snake's tail is where the head should be, and it travels
in
> the opposite direction of the spline. To give you an idea of what I'm
> working with, here's a sampling of the 243 lines of snake parts:
>
> object {sectionA scale 0.117 animate_by_spline(MySpline
> even_spline_spacing(on)+spline_clock(clock + 0.551584 ))} // 237
> object {sectionB scale 0.116 animate_by_spline(MySpline
> even_spline_spacing(on)+spline_clock(clock + 0.554158 ))} // 238
> object {sectionA scale 0.115 animate_by_spline(MySpline
> even_spline_spacing(on)+spline_clock(clock + 0.55671 ))} // 239
> object {sectionB scale 0.115 animate_by_spline(MySpline
> even_spline_spacing(on)+spline_clock(clock + 0.55924 ))} // 240
> object {NeckSectA scale 0.115 animate_by_spline(MySpline
> even_spline_spacing(on)+spline_clock(clock + 0.56177 ))} // 241
> object {NeckSectB scale 0.115 animate_by_spline(MySpline
> even_spline_spacing(on)+spline_clock(clock + 0.5643 ))} // 242
> object {head scale 0.26 animate_by_spline(MySpline
> even_spline_spacing(on)+spline_clock(clock + 0.566 ))} // 243
>
> These are the last 7 lines. Line 1 is the smallest section at the end of
the
> tail, line 243 is the head.
>
> Steve
>
>


Post a reply to this message

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