POV-Ray : Newsgroups : povray.binaries.images : Towards a procedural tree macro (62kbbu) : Re: Towards a procedural tree macro (62kbbu) Server Time
3 Oct 2024 02:22:58 EDT (-0400)
  Re: Towards a procedural tree macro (62kbbu)  
From: Chris Huff
Date: 27 Mar 2000 19:09:00
Message: <chrishuff_99-553FDE.19111427032000@news.povray.org>
In article <38debe2c@news.povray.org>, "Greg M. Johnson" 
<"gregj;-)56590\""@aol.c;-)om> wrote:

> Howdoya  turbulate?

You could turbulate an isosurface object by using it's function in a 
pigment function, and using the pigment function for the actual 
isosurface.

#declare TreeFn =
function {
    pigment {function {...}// use the tree function as pigment pattern
        color_map {[0 rgb 0][1 rgb 1]}
        warp {
            turbulence 0.35
        }
    }
}

isosurface {
    function {TreeFn(x,y,z)}
    ...

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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