POV-Ray : Newsgroups : povray.general : eliptical confusion. : Re: eliptical confusion. Server Time
10 Aug 2024 07:14:42 EDT (-0400)
  Re: eliptical confusion.  
From: Ken
Date: 14 Feb 2000 23:02:23
Message: <38A8CD97.6A444B11@pacbell.net>
Ross Litscher wrote:
> 
> Hi :)
> 
> i have two equations of an ellipse in polar form as follows:
> 
> f(theta)=(1-0.01671^2) / (1+0.01671*cos(theta-1.7968))
> 
> and
> 
> f(theta)=(0.937(1-0.232^2)) / (1+0.232*cos(theta-5.22))
> 
> where theta is the angle in radians, that i would like to have pov
> generate the output of by placing a sphere every once in a while.
> 
> these equations are supposed to represent a planet's orbit as well as an
> asteroids orbit. at 2 values for theta, they collide.

If you take a look at the VFAQ under the section "how do I rotate the
camera around the origin" Warp has added a section using sin/cos for
changing a circular path to an elliptical path. Just take the code
from the camera location section and move it into a translate function.
Also instead of using the clock to increment the location use a while
loop to increment the objects position.

http://www.students.tut.fi/~warp/povVFAQ/languageVFAQ.html#camerarotation

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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