POV-Ray : Newsgroups : povray.general : isosurface and max_gradient : Re: isosurface and max_gradient Server Time
1 Jul 2024 12:30:29 EDT (-0400)
  Re: isosurface and max_gradient  
From: William F Pokorny
Date: 6 May 2024 15:35:47
Message: <66393113@news.povray.org>
On 5/6/24 11:56, jr wrote:
> yes, no object with value '100'.  run with the scene as posted finds a max of
> '29882873856'.

Hi jr, The scene, as posted, was the original without the suggested 
min() wrapper - which we expect to have a very large max gradient.

Would you be kind enough to run the following version of the function on 
your machine to verify you too see a much, much lower gradient?

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 )
)
//      Rather than the posted:
//  (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 )

With the bounding sphere of radius 9 I'm seeing less than 10 on all 
recent versions of official POV-Ray and yuqk I have in hand. I'd like to 
know you too see the really low gradient too and not just a lower, but 
still quite large max gradient with the min() wrap.

I've not tried a clang compile yet. Off to do that - in part because 
I've not done a clang compile of yuqk in long while...

Bill P.


Post a reply to this message

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