|
|
I'd like to be able to rotate an object -- for example, hands on a clock --
along a plane (in this case the XY plane). My particular project is not a
clock, but I'm hopful it illustrates my goal.
However, Pov-Ray seems to only be able to rotate objects around a particular
axis.
I guess what I'm looking for is a run-down on the math required -- i.e.
rotate so much along this axis, and then along this axis, etc.
Any help would be greatly appreciated.
Thanks alot.
-Alex
Post a reply to this message
|
|
|
|
bardgaijin wrote:
> I'd like to be able to rotate an object -- for example, hands on a clock --
> along a plane (in this case the XY plane). My particular project is not a
> clock, but I'm hopful it illustrates my goal.
>
> However, Pov-Ray seems to only be able to rotate objects around a particular
> axis.
>
> I guess what I'm looking for is a run-down on the math required -- i.e.
> rotate so much along this axis, and then along this axis, etc.
>
> Any help would be greatly appreciated.
>
> Thanks alot.
>
> -Alex
>
>
Maybe I don't understand your question.
Would neither of these be solutions?
#local I=0;#while(I<12)
cylinder {
0,
<0,1,0>,
.02
rotate < I*30, 0, 0 >
pigment { Blue }
}
#local I=I+1;#end
#local I=0;#while(I<90)
cylinder {
0,
< 0, sin(I*pi/6), cos(I*pi/6) >,
.02
pigment { Red }
}
#local I=I+1;#end
Post a reply to this message
|
|
|
|
bardgaijin <nomail@nomail> wrote:
> I guess what I'm looking for is a run-down on the math required -- i.e.
> rotate so much along this axis, and then along this axis, etc.
There's a macro called Axis_Rotate_Trans() in transforms.inc which
does exactly this (ie. saves you from figuring out the math :) ).
--
- Warp
Post a reply to this message
|
|
|
|
I'm not sure I understand the problem.
Rotating along XY plane doesnt mean rotating around Z axis ?
42c04c52@news.povray.org...
> bardgaijin <nomail@nomail> wrote:
>> I guess what I'm looking for is a run-down on the math required -- i.e.
>> rotate so much along this axis, and then along this axis, etc.
>
> There's a macro called Axis_Rotate_Trans() in transforms.inc which
> does exactly this (ie. saves you from figuring out the math :) ).
>
> --
> - Warp
Post a reply to this message
|
|