|
|
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
|
|