POV-Ray : Newsgroups : povray.binaries.animations : Re: circle or spiral by spline ?? : Re: circle or spiral by spline ?? Server Time
6 Oct 2024 06:41:38 EDT (-0400)
  Re: circle or spiral by spline ??  
From: Shurakai
Date: 15 Oct 2004 05:15:01
Message: <web.416f945320cabba66b3522e90@news.povray.org>
"Rune" <run### [at] runevisioncom> wrote:
> You'll never get a perfect circle as Thorsten points out, but if you use
> enough control points, you can get very close. Try this:
>
> #declare C_Path4 = spline {
>    natural_spline
>    -0.25, <  -26.666, 0,  0>,
>    #declare Points = 64; // 4 points is like it was before.
>    #declare C = 0;
>    #while (C<=Points)
>       #declare V = C/Points;
>       V, vrotate(20*z,360*y*V),
>       #declare C = C+1;
>    #end
>     1.25, <   26.666, 0,  0>
> };

Tor Olav Kristensen <tor### [at] TOBEREMOVEDgmailcom> wrote:

Dear Tor Olav,

thanks a lot for Your function code. It was exactly what i was looking for.
But i nneden to chnage it a little bit, and now it's working fine with my
Animation-Debug Macro :)))) I can see the path and the camere moving on the
path during animation. A little sample is posted.

Once more thanks a lot for Your help.

Dear Rune,

i'll test Your spline as soon as possible, also big thanks to You.
It's easier to get my macros working with a spline than with a function
related macro.

Bye and have fun, Shu.


Post a reply to this message


Attachments:
Download 'circle_cam.mpg' (115 KB)

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