POV-Ray : Newsgroups : povray.general : I am calculating a normal... : Re: I am calculating a normal... Server Time
6 Aug 2024 14:15:20 EDT (-0400)
  Re: I am calculating a normal...  
From: Jim Charter
Date: 28 Feb 2002 05:47:02
Message: <3C7E0AA1.4050903@aol.com>
Mark Wagner wrote:

  
> 
> Without seeing the code you are using, I can't tell you for certain.
>  The -1.#IND means that a recent calculation had an undefined result.  I'm
> guessing you're dividing by zero somewhere.  Do your calculations normalize
> the vector?
> 
> --
> Mark
> 
 Thanks Mark, as it turns out it is not really a show stopper

I tested:  #if ( Norm.x = -1 & Norm.y = -1 & Norm.z = -1 )
			don't use Norm
crude, I know, but good enough in this case


Post a reply to this message

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