POV-Ray : Newsgroups : povray.newusers : Iso surface : Re: Iso surface Server Time
3 May 2024 08:54:30 EDT (-0400)
  Re: Iso surface  
From: Alain
Date: 29 May 2014 18:07:44
Message: <5387afb0@news.povray.org>

>
>
> Hello,
> I have written the following simple code for isosurface. It looks fine but the
> surface is not smooth.
>
> //code starts here
> camera{location<0,170,0> look_at<0,0,0>}
> background{White}
> light_source {<-100,400,-400> color White}
> box{<-100,-10,-14>,<100,10,14> texture{pigment{color rgb<0.7,1,1> transmit 0.7}}
> no_shadow}
>
> isosurface{
>    function{ z - (1+sin(x*2*pi/200))*6}
>    threshold -14
>    contained_by{box{<-100,-10,-14>,<100,10,14>}}
>    texture{pigment{ color Gray transmit 0.5}} no_shadow }
> }
> object{sphere{<-100,-10,-14>,5 texture{pigment{color Blue}}}}
> object{sphere{<100,10,14>,5 texture{pigment{color Red}}}}
> //code ends
>
> I have difficulty in  making smooth iso-surface. Thanks in advance
> Avant
>
>
>

Try antialiasing if the roughness is along the edges.

You should also check the message after the render. You may have a 
warning about max_gradient. If the message state a found gradient larger 
than the default with a mention of possible holes, add:
max_gradient <value reported in the message>
Doing the same if the reported value is smaller than the used one will 
make your render faster.
The exact location is not crutial, but placing it just after the 
threshold statement is a good location.

In this case, the default value for max_gradient look to be OK.


Post a reply to this message

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