POV-Ray : Newsgroups : povray.newusers : rotate object does not seem to work : Re: rotate object does not seem to work Server Time
29 Jul 2024 12:14:46 EDT (-0400)
  Re: rotate object does not seem to work  
From: Mike Williams
Date: 19 Nov 2005 20:36:27
Message: <MKyA9FALM9fDFwe9@econym.demon.co.uk>
Wasn't it Edee who wrote:
>In the snippet below, the object rotate does not rotate when a variable
>value but works with a fixed value.  It appears to be always set to zero
>(no rotaion0 when a variable is used.  The goal was to create a spiral
>series of I-beams.  Can anyone help me with what I am doing wrong?
>thanks
> ...
>        rotate <0,90,0>

You're rotating each beam by the same amount. To rotate each beam
differently you need to use something like this

        rotate <0,90-i*rrate*180/pi,0>

Note that "rotate" uses degrees, but rrate is in radians, hence the
*180/pi.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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