POV-Ray : Newsgroups : povray.newusers : animations : Re: animations Server Time
13 Jul 2024 09:06:49 EDT (-0400)
  Re: animations  
From: Alain Martel
Date: 29 Nov 2020 18:17:19
Message: <5fc42bff$1@news.povray.org>
Le 2020-11-29 à 08:32, Julia a écrit :
> Hi,
> Im making an animation of the earth and the moon rotating.
> I cant make the moon spin around the earth and i dont know where is the problem

As bald Eagle mentioned, all rotations are always relative to the 
origin. The same also apply to any scaling.

First, model your Earth at the origin.
Next, make it rotate on itself for the days animation, THEN apply the 
axial tilt.
Next, model your Moon at the desired distance. You then make it orbit 
the Earth with a single rotation. Here again, apply a rotation to 
emulate the lunar orbital tilt.
Finally, use a light source with the parallel attribute to simulate the 
Sun at some distance. I recommend placing it at around twice the 
distance to the Moon. The parallel attribute simulate a light source 
located at an infinite distance.
Rotate that light to simulate the relative motion of the Earth around 
the Sun.

Post a reply to this message

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