POV-Ray : Newsgroups : povray.advanced-users : Question about normals : Re: Question about normals Server Time
29 Jul 2024 06:22:09 EDT (-0400)
  Re: Question about normals  
From: Christopher James Huff
Date: 16 Nov 2002 11:41:40
Message: <chrishuff-E72300.11410016112002@netplex.aussie.org>
In article <web.3dd645beb3508d7038149fba0@news.povray.org>,
 "Tor Olav Kristensen" <tor### [at] hotmailcom> wrote:

> As long as his transformation matrix does not scale
> or shear the object in any way, he can just use this
> matrix for the normals as well.

Equal scaling is possible, only unequal stretching needs the transpose. 
But detecting this case takes more processing power than using the 
transpose of an existing inverse matrix, implementing it that way is a 
waste of time. It is easy to make a function that transforms by the 
transpose instead of the matrix without actually going through the 
trouble of transposing the matrix, it is no more computationally 
expensive than an ordinary direction vector transformation.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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