POV-Ray : Newsgroups : povray.beta-test : Torus problems with distant camera : Re: Torus problems with distant camera Server Time
2 Nov 2024 17:21:22 EDT (-0400)
  Re: Torus problems with distant camera  
From: Mark Wagner
Date: 27 Oct 2001 00:08:26
Message: <3bda333a@news.povray.org>
Slime wrote in message <3bd9faea$1@news.povray.org>...
>Well, it makes sense that it may happen when the rays have extremely low
>slopes (that is, they go over 1 unit in the X direction for every 100000 or
>so units in the Z direction), but why does it happen with an orthographic
>camera? At only a distance of about 1000 units? Surely POV can handle more
>than four decimals.


The problem is that a torus is a fourth-order polynomial.  So, in order to
get four decimal places of accuracy in a ray-torus intersection, POV-Ray
needs a whole lot more decimal places of accuracy in the intersection code.
I'm not sure about the exact math POV uses, but I would guess that for four
decimal places of accuracy, you'd need variables that can store 16 decimal
places.

--
Mark


Post a reply to this message

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