POV-Ray : Newsgroups : povray.binaries.images : isosurface - what's happening here? Server Time
14 Aug 2024 17:59:44 EDT (-0400)
  isosurface - what's happening here? (Message 1 to 5 of 5)  
From: Canicus
Subject: isosurface - what's happening here?
Date: 4 Sep 2002 09:18:10
Message: <3d760812@news.povray.org>
Apologies if this has been answered before; I suspect it should have been,

In my first-ever experimenting with iso-surfaces, I've run across this: <see
image>

There are some quite apparent "gridlines" appearing on the perturbed sphere;
they're ugly and I've no idea where they are coming from.  I've played with
the 'accuracy' setting with no success.

(POV v3.5 640x480noAA)

Scene file:

#include "functions.inc"
camera {location -1.1*z look_at <0,0,0>}
light_source {<5,5,-10> rgb 1}

#declare Sphere = function {pow(x,2) + pow(y,2) + pow(z,2)}
#local PETURB = 30;
#local FLATTEN = 30;
isosurface {
    function  { Sphere(x,y,z) +
f_snoise3d(x*PETURB,y*PETURB,z*PETURB)/FLATTEN }
    threshold 0.2
    max_gradient 3
    accuracy 0.0001
    pigment {rgb 1}
}


Post a reply to this message


Attachments:
Download 'isosurface.JPG' (32 KB)

Preview of image 'isosurface.JPG'
isosurface.JPG


 

From: William F  Pokorny
Subject: Re: isosurface - what's happening here?
Date: 4 Sep 2002 09:35:17
Message: <3D760C15.2436D56A@attglobal.net>
Canicus,
I cannot explain them, but I too have seen these on several iso-surfaces.   I
thought perhaps the artifacts might go away with AA as is the case
sometimes, but they did not.
Bill P.

> Apologies if this has been answered before; I suspect it should have been,
>
> In my first-ever experimenting with iso-surfaces, I've run across this: <see
> image>
>
> There are some quite apparent "gridlines" appearing on the perturbed sphere;
> they're ugly and I've no idea where they are coming from.  I've played with
> the 'accuracy' setting with no success


Post a reply to this message

From: Peter Popov
Subject: Re: isosurface - what's happening here?
Date: 4 Sep 2002 09:38:11
Message: <333cnuc0n3qrj6vrgog5jmdp1tnsvnee57@4ax.com>
On Wed, 4 Sep 2002 23:18:03 +1000, "Canicus" <d7p### [at] sneakemailcom>
wrote:

>There are some quite apparent "gridlines" appearing on the perturbed sphere;
>they're ugly and I've no idea where they are coming from.  I've played with
>the 'accuracy' setting with no success.

This is a well-known defect of the noise3d function, use
f_noise_generator(x,y,z,3) instead.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: ABX
Subject: Re: isosurface - what's happening here?
Date: 4 Sep 2002 09:46:18
Message: <1i3cnug3afeteam89v2ufj9klnsmlj0she@4ax.com>
On Wed, 4 Sep 2002 23:18:03 +1000, "Canicus" <d7p### [at] sneakemailcom> wrote:
> There are some quite apparent "gridlines" appearing on the perturbed sphere;

http://web.wanadoo.be/wbrp0009/pov/qbugs/noisegrid/main.html

ABX


Post a reply to this message

From: Slime
Subject: Re: isosurface - what's happening here?
Date: 4 Sep 2002 17:00:53
Message: <3d767485$1@news.povray.org>
The second derivative of all of the POV-Ray noise functions is discontinuous
at integer X, Y, or Z values. That causes the *first* derivative of the
*shading* of objects based off of the noise to be discontinuous there. This
creates a noticeable grid effect.

It's the way the noise is made to work internally. I've heard that there are
ways to fix or reduce the effect, but they haven't been implemented in
POV-Ray.

Try creating a pigment function based on the bozo pattern (which is really
just f_noise3d as a pattern, but be sure to add a color_map{[0 rgb 0][1 rgb
1]}), and then turbulating it, and using that function instead of f_noise3d.
The turbulence will at least move the grid around so it won't be quite so
noticeable.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

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