POV-Ray : Newsgroups : povray.beta-test : POV-Ray v3.8.0-alpha.9861167 : Re: POV-Ray v3.8.0-alpha.9861167 Server Time
25 Apr 2024 01:52:33 EDT (-0400)
  Re: POV-Ray v3.8.0-alpha.9861167  
From: Thomas de Groot
Date: 6 Oct 2018 02:48:26
Message: <5bb85aba$1@news.povray.org>
On 5-10-2018 20:33, Alain wrote:
> Le 18-10-05 à 11:08, clipka a écrit :
>> Am 04.10.2018 um 17:53 schrieb Alain:
>>> I no longer see the post render info when using isosurfaces with
>>> improper max_gradient.
>>
>> Can you provide a sample scene, and what exactly you'd expect?
>>
> 
> #version 3.8;
> global_settings{assumed_gamma 1}
> #declare tip = function(Vert) { sqrt(6.25 - pow(Vert,2)) - 1.5 }
> #declare rad = function(H) {(H*H+1) / max(H,1e-6) / 2}
> #declare hgt = function(x,R,H) { sqrt(pow(R,2) - pow(x,2)) + H - R }
> #declare hght= function(x,H) { hgt(x, rad(H), H) }
> #declare height=function(x,y) { hght(x, tip(y+1)) }
> 
> #declare OBJ=isosurface {
>      function { z * (z - hght(x, tip(y+1))) }
>      threshold 0
>      //max_gradient 9 // the original
>      max_gradient 1 // for this test
>      contained_by {box {<-1,-1,0>, <1,1,1>}}
>    }
> 
> object{OBJ pigment{rgb <1,0.5,0.3>}}
> camera{location -7*z look_at 0}
> light_source{<25,25,-25> rgb 1}
> 
> I expected some message about the max_gradient found to be around 9 but 
> set at 1.0.
> The resulting image show obvious holes.
> 
> But, I don't get any message after the render is complete.
> 
> 
> Alain

Isn't this the typical "naked" isosurface syndrome? i.e. a #declared 
isosurface do /not/ show warning messages, simply provide the isosurface 
as-is, does instead.

Try instead, without the #declare:

isosurface {
       function { z * (z - hght(x, tip(y+1))) }
       threshold 0
       //max_gradient 9 // the original
       max_gradient 1 // for this test
       contained_by {box {<-1,-1,0>, <1,1,1>}}
       pigment{rgb <1,0.5,0.3>}
     }


-- 
Thomas


Post a reply to this message

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