POV-Ray : Newsgroups : povray.general : help with rotation, gimbal lock? quaternions? : Re: help with rotation, gimbal lock? quaternions? Server Time
6 Aug 2024 14:22:19 EDT (-0400)
  Re: help with rotation, gimbal lock? quaternions?  
From: Christopher James Huff
Date: 12 Mar 2002 12:04:57
Message: <chrishuff-C84B87.12042912032002@netplex.aussie.org>
In article <slr### [at] fwicom>,
 Ron Parker <ron### [at] povrayorg> 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] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

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