POV-Ray : Newsgroups : povray.newusers : problems rotating around arbitrary axis : Re: problems rotating around arbitrary axis Server Time
31 Jul 2024 06:14:24 EDT (-0400)
  Re: problems rotating around arbitrary axis  
From: Kaveh
Date: 24 Nov 2002 03:10:37
Message: <1fm5jjf.1dv0gjojwixvkN%kaveh@delete_this.focalimage.com>
Mike Williams <mik### [at] econymdemoncouk> wrote:

> What's happening is that the expression that follows the "rotate"
> keyword isn't the axis vector times the rotation amount. It's a sequence
> of three separate rotations around the x, y and z axes, and that doesn't
> happen to be the same thing in most cases.
> 
> What you want to do is
> 
>         #include "transforms.inc"
>         object {myobject transform {Axis_Roatate_Trans (myvector, 45)}}

Thanks Mike. Silly of me!!

-- 
Kaveh


Post a reply to this message

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