Tree Expressions
3DA#26 How-To by Lee Steel / Images by the Author / Code by David Marks
In his 3D Artist issue #26 article, Lee Steel explains how to use 3D Studio Max expressions in conjunction with MECN's Tree Factory Max plug-in.
In an accompanying article, the author also reviews Tree Factory Max. (In other articles in the same issue, Alex Kiriako does a first look at the original Tree Factory standalone program and tells of an entirely different way to save file space and rendering time for trees in LightWave 3D.)
LEAFSC~1.XPR -- leaf scale
if((length(Camera-Tree)/3<Rng1),LS,
(if((length(Camera-Tree)/3<Rng2),LS*1.25,
(if((length(Camera-Tree)/3<Rng3),LS*1.5,LS*2)))))
s: Rng1:0
s: Rng2:0
s: Rng3:0
s: LS:0
v: Tree:0
v: Camera:0
LEAFDE~1.XPR - leaf density
if((length(Camera-Tree)/3<Rng1),5,
(if((length(Camera-Tree)/3<Rng2),4,
(if((length(Camera-Tree)/3<Rng3),3,2)))))
s: Rng1:0
s: Rng2:0
s: Rng3:0
v: Camera:0
v: Tree:0
SURFDE~1.XPR -- surface density
if((length(Camera-Tree)<Rng1),4,
(if((length(Camera-Tree)<Rng2),3,
(if((length(Camera-Tree)<Rng3),2,1)))))
s: Rng1:0
s: Rng2:0
s: Rng3:0
v: Camera:0
v: Tree:0
[3DS Max r1.x expression problems]
Revised: 13 Sep 00
http://www.3dartist.com/3dao/s/26/sltfexpr.htm
© Copyright 1996-98, 2000 Columbine, Inc. - All Rights Reserved
3D ARTIST magazine / Columbine, Inc. - P.O. Box 4787, Santa Fe, NM 87502 USA
505/424-8945 voice - 505/424-8946 fax - E-mail: webmaster@3dartist.com
Any mentioned trademarks are the property of their respective owners.