BlenderArt Magazine Issue 5 Modeling Techniques & Blender Scripts

Page 12

3D W ork s h op - Ge n3 th e Tre e M ode lGe ne rator (Script)

12

L-Sys te m L-s ys te m is a m e th od ofde s cribing s e l f-s im il ar s tructure s , itcan be vague l y com pare d to fractal s . L-s ys te m de finition cons is ts of: 1. Se tofs ym bol s from s om e al ph abe t. 2. Production rul es. 3. Me anings attach e d to e ach s ym bolfrom th e al ph abe t. Th e m ain partofL-s ys te m is a s tring re w riting m odul e , w h ich appl ie s production rul e s to s om e initials tring. Th e Re w riting proce dure is appl ie d to th e s tring in a re curs ive m anne r. Afte r s om e ite rations , re s ul ting s trings can de s cribe ve ry com pl exsel f-s im il ar s tructure s . Since m any pl ants h ave s e l f-s im il ar prope rtie s , Ls ys te m can be us e d to de s cribe th e m . Note , th atL-s ys te m can al s o be us e d for ge ne rating m any oth e r com pl e x s tructure s and th e re fore is notre s tricte d to jus tpl ants .

Jas on W e be r and Jos e ph Pe nn's tre e ge ne ration m ode l Jas on W e be r and Jos e ph Pe nn's tre e ge ne ration m ode linform ation box --Th is m ode l , unl ik e th e L-s ys te m , is orie nte d s pe cifical l y for 3D pl antge ne ration. In th is m ode l , tre e s are de s cribe d unde r trunk and s e ve rall e ve l s ofbranch e s . Th e m ode lde s cribe s param e te rs and form ul as w h ich are us e d to ge ne rate onl y tre e m ode l s . Som e param e te rs appl y to m ode l s in ge ne ral , s om e to trunk , branch e s or l e ave s onl y. Th e param e te r s e ttings are rich e nough for com pl e x tre e fam il ie s . Th e s e s e ttings al l ow configuration ofs iz e s and orie ntations , trunk s and branch e s , s h ape s , probabil itie s of s te m s s pl itting, l e afs h ape s and s o on. Param e te rs de s cribing trunk fl aring, l obe s and tre e s h ape pruning are al s o pre s e nt. Since th is m ode lw as cre ate d s pe cial l y for tre e m ode lge ne ration, itcan be unde rs tood and m odifie d m ore e as il y th an m ode l s bas e d on th e L-s ys te m . A ful lm ode lde s cription can be found in [W e be r9 5].

Bl e nde rartM agazine - Jul y 20 0 6

Se rge y Prok h orch uk I am a softw are de ve l ope r atViaSoftLtd, Uk raine . Since I h ave som e e xpe rie nce in C/C+ + and Pyth on program m ing, I try to use itin diffe re ntare as of 3D-graph ic. O th e r com pute r-re l ate d are as I'm inte re ste d in are : program m ing th e ory, artificialinte l l ige nce and cryptograph y.


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.