POV-Ray : Newsgroups : povray.animations : camera-spline behaves weird : Re: camera-spline behaves weird Server Time
27 Sep 2024 18:27:31 EDT (-0400)
  Re: camera-spline behaves weird  
From: Marc Roth
Date: 18 Feb 2004 10:26:01
Message: <40338409$1@news.povray.org>
> [something about making a spline which goes a quarter of a circle]

hm, i tried something myself and it worked out. i simply looked at the 
formula for a circle which is

x^2 + y^2 = r^2

x and y are the coordinates and r is the radius of the circle. you can 
make it more flexible by changing it to

(x-a)^2 + (y-b)^2 = r^2

now it's a circle with radius r around a center with the coordinates <a,b>
if you solve this equation you get:

y = sqrt( r^2 - (x-a)^2 ) - b

this can be used rather easy in a #while loop to create the 
controlpoints for the spline.

bye,
	Marc


Post a reply to this message

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