POV-Ray : Newsgroups : povray.binaries.images : Tree What do you think of it? : Re: Tree What do you think of it? Server Time
3 Oct 2024 19:16:10 EDT (-0400)
  Re: Tree What do you think of it?  
From: Larry Fontaine
Date: 11 Oct 1999 17:03:55
Message: <380250F3.C6F8B3F8@isd.net>
> Congratulations. I wish I could get down to writing a useful macro and
> object generation include. If you want my opinion, it looks cartoony.
> Perfect for a setting with blob-men. =) What parameters can one control in
> the creation of the tree?

The cartooniness I believe can be toned down with proper texturing, which this
"tree" is far from.
PARAMETERS: Start-coords of trunk, end-coords of trunk, recursion level,
number of branches at each split, ratio of diameters at start and end of
branch (cone factor--redundant, should be same as child-diameter-ratio), ratio
of length in child branches, ratio of diameter in child branches, average
offset angle of child branches from parent branches, randomization factor of
branch endpoints, number of components per branch, "crookedness" (not yet
implemented), "bumpiness" (what this tree uses), radius of trunk, leaf density
(leaves per branch), leaf size (scale factor), leaf object definition, and the
four seed values. If you try to put all of these into one macro, POV complains
that it's too many, so I made a branch macro and a leaf macro, the leaf macro
is like the branch macro, but it skips the actual "add component" line and
instead has an "add leaf" line if the recursion level has reached zero. In the
leaf macro I can eliminate crookedness, bumpiness, radius, and a couple seed
values. (The rest are needed to determine the start and end coord's of the
branches.)

Hmm, that gave me an idea... as the branch macro executes, it stores
level-zero coordinates in an array for the leaf macro.


Post a reply to this message

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