POV-Ray : Newsgroups : povray.binaries.images : Simple Isosurface : Re: Simple Isosurface Server Time
5 Nov 2024 18:25:43 EST (-0500)
  Re: Simple Isosurface  
From: honnza
Date: 15 Oct 2007 01:35:00
Message: <web.4712fb108375225aa9ce4df50@news.povray.org>
"Woody" <nomail@nomail> wrote:
> I was testing out some of the Isosurfaces from the documentation and came
> across some thing which I'm not sure if its a bug, a limitation, or so I'm
> just not doing it right.
>
> The code below renders to the attached image. There seems to be some weird
> normals, shading, or with the general shape. But if I change the viewing
> coordinates to something else like <3,2,5> everything looks fine.
>
> Can anybody tell me what I'm doing wrong or make any suggestions?
>
>
>
> #include "colors.inc"
>
> camera {
>  location <2,2,2>
>  look_at <0,0,0>
> }
>
> isosurface{
>         function{ abs(x)+abs(y)-1}
>         contained_by {box{-1,1}}
>         pigment{color White}
> }
>
>
> light_source {
>  <2,2,2>
>  color White
> }

Hello,
 If you look into the messages tab you may notice a message saying like
"isosurface on line 12 has its maximum gradient set to 1.1 but there was
found a gradient of 128.256. Increase the max_gradient value", very
roughly.
What happens here is that the renderer expects the function to change slower
than it actually does. That's why your surface contains holes. You can
change this expected maximum gradient value by the max_gradient keyword.


Post a reply to this message

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