|
 |
In article <slr### [at] fwi com>,
Ron Parker <ron### [at] povray org> wrote:
> Transforming vectors is different from transforming points. I think the
> transpose of the transformation matrix is involved somehow; I'd have to check
> the code to be sure.
For directions, you transform using the inner 3*3 portion of the matrix
(basically dropping translation). For normals, you have to transform by
the transpose of this matrix.
(I recently had to do exactly this, so it is fairly fresh in my mind)
--
Christopher James Huff <chr### [at] mac com>
POV-Ray TAG e-mail: chr### [at] tag povray org
TAG web site: http://tag.povray.org/
Post a reply to this message
|
 |