POV-Ray : Newsgroups : povray.general : rotation question : Re: rotation question Server Time
8 Aug 2024 22:17:49 EDT (-0400)
  Re: rotation question  
From: sacrofts
Date: 23 Sep 2000 03:45:55
Message: <39cc5fb3@news.povray.org>
Many thanks, found it.  worked a treat
Stephen

"Thorsten Froehlich" <tho### [at] trfde> wrote in message 
news:39ca74b7$1@news.povray.org...
> In article <39ca7124@news.povray.org> , "sacrofts" 
> <sac### [at] tinyonlinecouk> wrote:
> 
> > Can anyone help? If I have a sphere, and touching at any one point 
on that
> > sphere I have another >object, is there any way I could control the 
rotation
> > of that object relative >to the axis of the sphere's normal at that 
point? For
> > the image I'm working on, I have the radius of the sphere, the angle 
of the
> > object from the 'north-pole' of the sphere, and the angle around the 
sphere
> > measured from the positive x-axis.
> 
> What you are looking for is the vaxis_rotate function.  You find it
> explained in the documentation under:  Scene Description Language > 
Language
> Basics > Vector Expressions > Vector Functions
> 
> The parameters in your case would be as follows (I think):
> 
>     vaxis_rotate(point, normal, degrees)
> 
> 
>      Thorsten


Post a reply to this message

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