POV-Ray : Newsgroups : povray.advanced-users : Calculating planet positions : Re: Calculating planet rotations Server Time
28 Apr 2024 14:06:53 EDT (-0400)
  Re: Calculating planet rotations  
From: Le Forgeron
Date: 26 Sep 2018 12:40:01
Message: <5babb661@news.povray.org>
Le 26/09/2018 à 08:52, Mike Horvath a écrit :
> Oops, here are the files once again. (Ignore the previous ones.)
> 
> 
> Mike

I added the tilting axis (yellow) of the planet and the relevant
transformation.

I do not touch obliquity.

#declare TILT_AXIS = vrotate( x, (90+alpha_0)*z );
/* same as
#declare TILT_AXIS = vrotate( y, alpha_0*z );
*/
#include "transforms.inc"

#declare sphere_trans = transform
{
	rotate z * W
  Axis_Rotate_Trans( TILT_AXIS, 90-delta_0 )
	//rotate x * (90-delta_0)
	//rotate z * (90+alpha_0)
	rotate x * -obliquity
}


Post a reply to this message


Attachments:
Download 'step.png' (163 KB) Download 'step.pov.txt' (4 KB)

Preview of image 'step.png'
step.png

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