POV-Ray : Newsgroups : povray.newusers : more isosurface woes : Re: more isosurface woes Server Time
4 Sep 2024 18:17:33 EDT (-0400)
  Re: more isosurface woes  
From: Mike Williams
Date: 3 Oct 2002 02:22:21
Message: <xvq3WPA0+9m9Ewpf@econym.demon.co.uk>
Wasn't it Justin Smith who wrote:
>I've been experimenting a lot with creating mountains using isosurfaces, but
>I can't seem to quite get it right.
>
>I've been using a paraboloid function as the basic shape (x^2+y+z^2). I have
>been trying to use pattern noise to carve out parts to make it look more
>like a real mountain. I've mainly been using crackle and agate, since they
>seem the closest to what I want.
>
>The problem is that when I make the noise large enough (either by scaling
>the #declared pigment function in the declaration, or by increasing the
>multiplier at the end of subtracting it from the base function, or both),
>it always leaves "floaters"... pieces of terrain that are not actually
>connected or are connected by very thin sections to the main object. If I
>make the noise small enough to prevent this from being noticeable, the
>general silhouette of the mountain is still a perfect paraboloid and looks
>very unnatural.

Instead of using    Pigment_Function(x,y,z) 
try using           Pigment_Function(x,0,z)

This returns a value that only depends on the x and z co-ordinates of
the point, and will prevent bits floating off in the y direction.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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