POV-Ray : Newsgroups : povray.general : isosurface and max_gradient : Re: isosurface and max_gradient Server Time
1 Jul 2024 12:30:39 EDT (-0400)
  Re: isosurface and max_gradient  
From: William F Pokorny
Date: 7 May 2024 07:24:44
Message: <663a0f7c$1@news.povray.org>
On 5/7/24 02:03, jr wrote:
> much faster render, much lower gradient.  gave (again) value '100', the beta.2
> now reports "maximum gradient found was 12.207, ...".  nice.

Thank you!

I got a clang++ compile going too (with issues...), but it's also 
reporting the much lower gradient with the min() wrapper.

So, my best guess at the moment - given, kurtz le pirate, reported a 
lower max gradient, but one still quite large, is that perhaps what 
ended up coded on trying min() in his case was something like:

          min(
             (SQ(sqrt(x*x + y*y) - 3) + z*z - 0.4 ),
             (SQ(sqrt((x - 4.5)*(x - 4.5) + z*z) - 3) + y*y - 0.4),
             (SQ(sqrt((x + 4.5)*(x + 4.5) + z*z) - 3) + y*y - 0.4),
             (SQ(sqrt((y + 4.5)*(y + 4.5) + z*z) - 3) + x*x - 0.4),
             (SQ(sqrt((y - 4.5)*(y - 4.5) + z*z) - 3) + x*x - 0.4) *
             (SQ(sqrt(x*x + y*y) - 5) + z*z - 0.4 )
         )

It's just a guess but, I'm otherwise out of ideas as to other causes.

Bill P.


Post a reply to this message

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