fox541 Posted January 8, 2008 Share Posted January 8, 2008 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. 1 Quote Link to comment Share on other sites More sharing options...
cellchuk Posted January 8, 2008 Share Posted January 8, 2008 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 Quote Link to comment Share on other sites More sharing options...
cellchuk Posted January 8, 2008 Share Posted January 8, 2008 ok, I am really not %100 sure about it but the result kind of looks like the picture 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. cheers, Quote Link to comment Share on other sites More sharing options...
fox541 Posted January 20, 2008 Author Share Posted January 20, 2008 ok,I am really not %100 sure about it but the result kind of looks like the picture 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. 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 Quote Link to comment Share on other sites More sharing options...
cellchuk Posted January 20, 2008 Share Posted January 20, 2008 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: Quote Link to comment Share on other sites More sharing options...
fox541 Posted January 24, 2008 Author Share Posted January 24, 2008 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. Quote Link to comment Share on other sites More sharing options...
cellchuk Posted January 25, 2008 Share Posted January 25, 2008 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. Quote Link to comment Share on other sites More sharing options...
fox541 Posted January 28, 2008 Author Share Posted January 28, 2008 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.