Justin K Posted February 7, 2017 Share Posted February 7, 2017 Hello all. I am doing some studies on L systems. At this point I am trying to distribute a tree built from an l system across some scattered points generated from a grid. I am using a copy sop for the distribution. The issue is I want each l system "tree" to be a different seed of the l system and I can't figure out how to do this. I can generate randomized trees within the confines of the copy sop itself---- I simply use a stamp function, link this to the seed value in the l system, and each copy I make has a different seed. Unfortunately this doesn't work when I am using the second input for the copy sop, and copying to preexisting locations. I realize that this has less to do with L_systems than the nature of copy stamping in Houdini, but I am fairly new to the Houdini, so any advice about this specific situation and the rules of stamping would be helpful. I have attached an example file. Thank you. L_system_stamping.hipnc Quote Link to comment Share on other sites More sharing options...
vtrvtr Posted February 7, 2017 Share Posted February 7, 2017 (edited) Can't you just stamp first on the ground and then do the leaves? Edited February 7, 2017 by vtrvtr 1 Quote Link to comment Share on other sites More sharing options...
Atom Posted February 7, 2017 Share Posted February 7, 2017 (edited) I don't think you have your random seed set correctly. You are referencing a channel on Copy1 which does not exist. Check out this modification. ap_L_system_stamping.hipnc Edited February 7, 2017 by Atom Quote Link to comment Share on other sites More sharing options...
Justin K Posted February 7, 2017 Author Share Posted February 7, 2017 Thank you both. Seems to me (at least via my understanding) that Atom's idea accomplishes in the script what you suggested. It did not occur to me to stamp via a randomized point attribute I myself created though---really cool and straightforward---- Ill keep that concept in the tool box I am slowly trying to build. And about the copy sop--my apologies--a dumb mistake on my part that occured while I was trying to transfer the info into a cleaner file for your perusal. Cheers!---continuing on. 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.