POV-Ray : Newsgroups : povray.binaries.images : Towards a procedural tree macro (62kbbu) Server Time
3 Oct 2024 00:27:02 EDT (-0400)
  Towards a procedural tree macro (62kbbu) (Message 11 to 13 of 13)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Greg M  Johnson
Subject: Re: Towards a procedural tree macro (62kbbu)
Date: 26 Mar 2000 20:49:32
Message: <38debe2c@news.povray.org>
Howdoya  turbulate?

Lummox JR wrote:

> These trees would look just great in a background, I think; not as good
> in the foreground, though.
> Two small suggestions:
>
> 1) Turbulate the x, y, and z values just slightly based on their
> distance from the center. This will give the trees a less hemispherical
> look.
> 2) Change all n^2 to sqr(n) and n^0.5 to sqrt(n). As far as I can tell
> from the function code, these should always be faster than using an
> exponent.
>
> I think I might give this a try in an old scene (where I wanted
> background trees but settled for a textured height field) and see what
> happens.
>
> Lummox JR


Post a reply to this message

From: Steve
Subject: Re: Towards a procedural tree macro (62kbbu)
Date: 27 Mar 2000 11:54:16
Message: <slrn8dv2kc.dc4.sjlen@zero-pps.localdomain>
I like the look of this.  I don't know anything about isosurfaces,
but I'll have a play with the code. 
-- 
Cheers
Steve              email mailto:sjl### [at] ndirectcouk

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

  2:19pm  up 8 days,  9:54,  5 users,  load average: 1.95, 1.95, 1.88


Post a reply to this message

From: Chris Huff
Subject: Re: Towards a procedural tree macro (62kbbu)
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

<<< Previous 10 Messages Goto Initial 10 Messages

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