POV-Ray : Newsgroups : povray.general : I am calculating a normal... : Re: I am calculating a normal... Server Time
19 Nov 2024 13:24:51 EST (-0500)
  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.