POV-Ray : Newsgroups : povray.newusers : TRACE returns a unit-length NORMAL vector : Re: TRACE returns a unit-length NORMAL vector Server Time
29 Jul 2024 14:13:29 EDT (-0400)
  Re: TRACE returns a unit-length NORMAL vector  
From: Warp
Date: 6 Oct 2005 14:53:53
Message: <434572c1@news.povray.org>
Skip Talbot <Ski### [at] aolcom> wrote:
> Kenneth, doesn't it seem logical, and wouldn't you assume that the 
> vectore returned by trace would indeed be a unit length vector?  What 
> else would it possibly be?

  Why is it so obvious that the normal vector returned by trace() is
normalized?
  Normal vectors are usually results of some calculation which often do
not by itself return a normalized vector. For example, if you calculate
the normal vector of a triangle using cross-product, the result will not
be normalized and you have to it separately.
  POV-Ray primitives probably return their normal vectors already
normalized for convenience, but it's not something obvious. They could
perfectly well return non-normalized normal vectors.

  (For those who don't know the term, normalizing means calculating a
vector with the same direction as the given vector but with length 1.)

-- 
                                                          - Warp


Post a reply to this message

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