POV-Ray : Newsgroups : povray.animations : rotation and orbit ? : Re: rotation and orbit ? Server Time
28 Jul 2024 20:33:06 EDT (-0400)
  Re: rotation and orbit ?  
From: Bob Hughes
Date: 24 Jan 2000 12:35:17
Message: <388c8d55@news.povray.org>
"Peter Popov" <pet### [at] usanet> wrote in message
news:Dt6LOK5zhY9yVXasthw9DVIrEWwn@4ax.com...
| On Sun, 23 Jan 2000 23:19:53 -0500, Andrea Ryan <ary### [at] global2000net>
| wrote:
|
| >What if the orbit is tilted?  The orbit of the Moon is tilted about 5.145
| >degrees.  Would that be incorporated if the Moon is rotated on its axis,
tilted
| >over a little, translated, rotated 5.145 degrees and revolved around the
| >Earth?  What if a elliptical orbit is desired?
| >Brendan Ryan
| >
|
| object
| {
|   Moon
|   rotate <5.145,-360*y*clock,0>
|   translate R*<cos(2*pi*clock), 0, E*sin(2*pi*clock)>
|   // R is the major radius
|   // E is the "Eggness", i.e. minor to major radius ratio
| }
|

No, wrong.  You have the axial tilt of the Moon before the rotation on it's
axis.  This would have it wobbling (it does anyhow though, about 6 degrees? not
sure of that).  The 'translate' instead of a 'rotate' for it's orbit is a good
idea... except....
You will need the 5 degree inclination after the ellipse is done.

Bob


Post a reply to this message

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