|
![](/i/fill.gif) |
"mysdn" <kam### [at] hotmail com> wrote:
> I'm new at this forum and very interested in ray tracing. Currently, I'm using
> Povray for ray tracing. But I have a huge problem understanding its rotation
> logic.
That's perfectly normal, I guess everyone had that :)
The key to understanding POV-Ray's rotations is that POV-Ray always (well,
*virtually* always) operates in absolute coordinate space; similarly, rotations
are always about the absolute coordinate origin.
In order to rotate an object around an arbitrary point, you need to first
translate the object so that the particular point ends up at the absolute
coordinate origin, then perform the rotation, and then translate the object
back; e.g.:
translate -<3,2,1>
rotate y*30
translate <3,2,1>
will perform a 30-degree rotation about the vertical through the point <3,2,1>.
Post a reply to this message
|
![](/i/fill.gif) |