POV-Ray : Newsgroups : povray.general : Torus/Camera Angle Bug??? : Re: Torus/Camera Angle Bug??? Server Time
26 Apr 2024 20:33:33 EDT (-0400)
  Re: Torus/Camera Angle Bug???  
From: Alexander Enzmann
Date: 22 May 2000 15:27:19
Message: <39298B43.F480FB23@mitre.org>
Eric Freeman wrote:
> 
> Hey all,
> 
> Here's the code which causes the problem with the torus.
> ...
> camera {
> ...
>     location <0,0,-10000>
> ...
> torus {
>   1.3, 0.7
> ...


Size of distance from eye to torus ~ 10000.  After substitution into
fourth order equation, yields values ~1.0e16.  Solve for values of order
~0.01 (for a 1.3 rad torus filling 100 pixels).  Requires more than 18
digits of precision.

Double precision on standard Intel chips is ~15 decimal digits.

Result: lots of speckles in torus.

Fix: Intersect ray with bounding box of torus before solving quartic. 
Move start point of ray to point of intersection.  Speckles go away.

Workaround for current POV-Ray?  Don't know, perhaps intersect torus
with a box that is a little bigger than it to force ray origin to be
closer.

Xander


Post a reply to this message

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