Jump to content

How To Model Interpret This Code For Lsystems In Houdini


fox541

Recommended Posts

i have been reading "The Algorithmic Beauty of Plants",that stuff is very enlightening,it works perfectly and intensively on my lsystem.

but the following code puzzle me ,i dont known how to write the rules in houdini,can anyone help me out?thanks.

post-2902-1199789432_thumb.jpg

  • Like 1
Link to comment
Share on other sites

i have been reading "The Algorithmic Beauty of Plants",that stuff is very enlightening,it works perfectly and intensively on my lsystem.

but the following code puzzle me ,i dont known how to write the rules in houdini,can anyone help me out?thanks.

hey fox,

I think I'll give it a try

I am not sure about the result though but anyway.

I'm gonna try it :)

Link to comment
Share on other sites

ok,

I am really not %100 sure about it but the result kind of looks like the picture :P

I'll just write down the houdini rules that I converted from the actual formula as far as I understood.

-------------------

- I've got 3 lsystem nodes

and the terms in the formula were like the following (again I'm not sure :) )

---------------------------------------------

plant: X

leaf: J (another lsystem node which needs to be wired to the J input of the main l-system node)

flower: K (another lsystem node which needs to be wired to the K input of the main l-system node)

internode: F

seg: S

pedicel: P

wedge: W

---------------------------------------------

Main Lsystem Node Rules:

Step Size: 5

Angle: 18

------------------------------

Premise:   X
Rule1:	 X=F+[X+K]--//[--J]F[++J]-[XK]++XK
Rule2:	 F=FS[//&&J][//^^J]FS
Rule3:	 S=SFS

J _ L-System Node Rules

Step Size: 1

------------------------------

Premise:   X
Rule1:	 X=F['(+f-ff-f+|+f-ff-f)]

K _ L-System Node Rules

Step Size: 2

Angle: 126

------------------------------

Premise:   X
Rule1:	 X=[&&&P'/W////W////W////W////W]
Rule2:	 P=FF
Rule3:	 W=['^F][(&&&&-f+f|-f+f)]

------------------------------------------------------

that's what I understood from the actual formula

so pls letme know if you find anything else which works better.

Note: I added an F (internode) into the beginning of the Rule1 in J -lsystem which is not in the formula. :P

cheers,

Link to comment
Share on other sites

  • 2 weeks later...
ok,

I am really not %100 sure about it but the result kind of looks like the picture :P

I'll just write down the houdini rules that I converted from the actual formula as far as I understood.

-------------------

- I've got 3 lsystem nodes

and the terms in the formula were like the following (again I'm not sure :) )

---------------------------------------------

plant: X

leaf: J (another lsystem node which needs to be wired to the J input of the main l-system node)

flower: K (another lsystem node which needs to be wired to the K input of the main l-system node)

internode: F

seg: S

pedicel: P

wedge: W

---------------------------------------------

Main Lsystem Node Rules:

Step Size: 5

Angle: 18

------------------------------

Premise:   X
Rule1:	 X=F+[X+K]--//[--J]F[++J]-[XK]++XK
Rule2:	 F=FS[//&&J][//^^J]FS
Rule3:	 S=SFS

J _ L-System Node Rules

Step Size: 1

------------------------------

Premise:   X
Rule1:	 X=F['(+f-ff-f+|+f-ff-f)]

K _ L-System Node Rules

Step Size: 2

Angle: 126

------------------------------

Premise:   X
Rule1:	 X=[&&&P'/W////W////W////W////W]
Rule2:	 P=FF
Rule3:	 W=['^F][(&&&&-f+f|-f+f)]

------------------------------------------------------

that's what I understood from the actual formula

so pls letme know if you find anything else which works better.

Note: I added an F (internode) into the beginning of the Rule1 in J -lsystem which is not in the formula. :P

cheers,

thanks cellchuk very much!

i have tested the your code,and it works perfect for the main stem structure,but it fails to leaves and flowers,and i will try to spare some time to solve the issue.

thanks :rolleyes:

Link to comment
Share on other sites

thats cool,

let me know if u find a way to get the flowers work as well.

I'll also have a look at it some time. ( Unfortunately houdini is not installed on this machine )

Note:the flowers seemed to be working when I first tried it but I'll check them out anyway.

cheers

:thumbsup:

Link to comment
Share on other sites

thanks ,this is a small test,i emulate it from cmivfx:)

and for you code,i found the leaves is only a line,so i disconnect it,maybe we shoud generate them just as the cmivfx:(

i watch the movie<the time machine>,and i was incited by the great trees vfx,some stuff says that those trees were made from l-system and xfrog,but i am puzzled by the question how they make out of xforg ?it just a model library,it only has plugins for maya and c4d.so i wonder if the ILM only adopt the models:)

thanks onc again.

post-2902-1201178445_thumb.jpg

Link to comment
Share on other sites

thanks ,this is a small test,i emulate it from cmivfx:)

and for you code,i found the leaves is only a line,so i disconnect it,maybe we shoud generate them just as the cmivfx:(

i watch the movie<the time machine>,and i was incited by the great trees vfx,some stuff says that those trees were made from l-system and xfrog,but i am puzzled by the question how they make out of xforg ?it just a model library,it only has plugins for maya and c4d.so i wonder if the ILM only adopt the models:)

thanks onc again.

looks good, :)

yes the flower node draws just the lines with the existing formula.

but yes, you might create a geometry by using those lines, re-write it to create a better looking l-sys based polyflower (like cmiVFX's lsys flowers) or replace it with a model.

keep up good work

:thumbsup:

cheers.

Link to comment
Share on other sites

looks good, :)

yes the flower node draws just the lines with the existing formula.

but yes, you might create a geometry by using those lines, re-write it to create a better looking l-sys based polyflower (like cmiVFX's lsys flowers) or replace it with a model.

keep up good work

:thumbsup:

cheers.

tkx for your kindness : )

i have just test a palm in xsi,and i implement the bones in the tree,animate it,then,you guess,the tree can grow!

then the flowing thing is to find a way to do the same thing in houdini,but i dont kown whether the bones can grow in houdini.

some pics seq:

to be contined

only kinetics

post-2902-1201529530.jpg

post-2902-1201529568.jpg

post-2902-1201530054.jpg

post-2902-1201530063.jpg

post-2902-1201530135_thumb.jpg

post-2902-1201530150_thumb.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...