POV-Ray : Newsgroups : povray.general : 6,000,000,000 : Re: 6,000,000,000 Server Time
7 Aug 2024 21:17:40 EDT (-0400)
  Re: 6,000,000,000  
From: Mike Williams
Date: 2 Jun 2001 11:40:37
Message: <uCegdCAkiQG7EwhS@econym.demon.co.uk>
Wasn't it Bill DeWitt who wrote:

>    My problem is that when I contain an iso in a large box, it disappears.

That might possibly be due to insufficient max_gradient.

What can happen is that the renderer starts at the edge of the box, and
evaluates the function there. If the value of the function is greater
than max_gradient * size-of-box, then it knows that the function can't
become zero anywhere in the box and gives up immediately.

E.g. if we examine the function {x^2 + y^2 + z^2 - 1}

This works fine with "method 2 eval" if it is contained by a box that's
smaller than box{-6.52,6.52}, but when it's contained by a larger box
there's bits missing, and if the box is larger than 6.62 it disappears
completely.

The gradient of the function at the corner of the box is actually about
2.83 * size-of-box, but for a 6.58 box "eval" guesses only 15.313
instead of 18.61. For larger boxes "eval" guesses lower and lower
numbers. Whenever the renderer is working with an incorrect max_gradient
(whether it's because you specified a wrong value, eval guessed wrongly,
or you didn't specify anything and it assumed the default) bits of the
surface are likely to go missing.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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