POV-Ray : Newsgroups : povray.programming : sphere scaling bug : Re: sphere scaling bug Server Time
29 Jul 2024 04:28:11 EDT (-0400)
  Re: sphere scaling bug  
From: Ronald L  Parker
Date: 20 Sep 1998 15:37:13
Message: <36084720.225653302@news.povray.org>
On Sat, 19 Sep 1998 21:46:45 -0400, Nathan Kopp <nk8### [at] ltuedu>
wrote:

>Ok... there seems to be a bug in POV's sphere scaling code.  If you have a
>sphere and you scale it uniformly, it will simply multiply the radius by your
>scale factor instead of using a transformation matrix.  This is a speed
>improvement under some circumstances, but it seems to lead to a bug when
>the radius is veryu small.  

Here's the culprit, from the windows config.h file:

#define EPSILON 1.0e-5

I changed this to 

#define EPSILON 1.0e-12

and, for good measure, added

#define SNGL double
#define COLC double

and the problem went away.


Post a reply to this message

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