POV-Ray : Newsgroups : povray.newusers : Smooth circular rotation using spline : Re: Smooth circular rotation using spline Server Time 3 Feb 2023 14:04:39 EST (-0500)
 Re: Smooth circular rotation using spline
 From: Alain Date: 25 Oct 2016 11:56:21 Message: <580f80a5\$1@news.povray.org>
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#580f80a5%241%40news.povray.org",
"headline": "Re: Smooth circular rotation using spline",
"dateCreated": "2016-10-25T15:56:21+00:00",
"datePublished": "2016-10-25T15:56:21+00:00",
"author": {
"@type": "Person",
"name": "Alain"
}
}

> Hi all,
>
> I'm trying to make my camera rotate around an object in a perfectly smooth
> circular manner. The reason I'm having
> trouble is that I want the camera to be slow in some parts sections of the
> rotation while fast in other parts. I'm no math whizz so I an using the spline
> identifiers rather than some complicated trigonometry code. Cubic_spline seems
> to work closest (smoothest) to what I want it to do.
>
> Ive used a total of 12 points per rotation so far and the camera still
> appears to 'wobble' in
> and out toward the centre object. See the code below for the camera path. Is
> there an easier way to make the path a smooth circle than just to keep adding in
> points on the curve? It gets
> tricky splitting the rotation time up into the correct proportions as you add in
> more points.
>
> Any suggestions are welcome!
>

Don't use a spline.
As your camera is orbiting around the origin, you can simply place it at
the start position and rotate it using rotate y*Angle.
Now, the only trick is to controll the speed of the camera. For that,
it's possible to use a spline where you set the angular location