POV-Ray : Newsgroups : povray.advanced-users : array to matrix : Re: array to matrix Server Time
28 Sep 2024 06:12:46 EDT (-0400)
  Re: array to matrix  
From: CAD-Andi
Date: 18 Mar 2011 15:05:00
Message: <web.4d83abaf9e47287bbf952ed30@news.povray.org>
> Translate the object to the origin, rotate, translate back.
>
> translate -Pos
> rotate 10*z
> rotate 20*y
> translate Pos

Doing this will apply the second rotation around y to the same axis system like
the previous rotation around z. I need to rotate around the "NEW" axis system
that got created while I rotated the object around z. In other words, I would
like to always rotate around a "local" axis system of an object. The values for
this I would like to store in an array for futher programmical canges.

Any idea?

Andi


Post a reply to this message

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