POV-Ray : Newsgroups : povray.general : Isosurface : Re: Isosurface Server Time
10 Aug 2024 13:21:11 EDT (-0400)
  Re: Isosurface  
From: Chris Huff
Date: 18 Dec 1999 19:37:25
Message: <chrishuff_99-42DA44.19380218121999@news.povray.org>
In article <385c20b8@news.povray.org>, "Ed Kaiser" 
<eka### [at] camdentdsnet> wrote:

> ...and how do you add it to and equation like x^2+y^2+z^2-1 ?

Just add it in.
Do something like this:
#declare MyPigmentFunction =
function {
    pigment {agate
        color_map {[0 color Black][1 color White]}
    }
}

isosurface {
    function {x^2+y^2+z^2 - 1 + 
        MyPigmentFunction(x, y, z)*0.5
    }
    threshold 0
    ...
}

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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