Jump to content

L-Systems - Instancing geometry on a "step forward" (F).


Recommended Posts

Hello,

I was wondering if anyone knew if it was possible (or not) to instance geometry on a step forward (the F variable) using L-systems in the same way that leaves or flowers can be instanced for the variables J, K, L, and M.

Anyone have any ideas?

Thanks!

Link to comment
Share on other sites

Hey Josh,

Just a rough idea - not able to test it right now, but what about grouping any points in the F, and then instance/copy stamp onto those points?

From the houdini help:

Create groups within L-systems

The g command puts all geometry currently being built into a group.

The group name is composed of a prefix set on the Funcs tab and a number. Default prefix is lsys, producing group names like “lsys1”. You can specify the number as an argument to the g command.

For example, g[F] puts geometry from the F into a group (named using ). Otherwise, the default index is incremented appropriately.

The current group is associated with the branch, so you can do things like gF [ gFF ] F to put the first and last F into group 0, and the middle (branched) FF into group 1.

To exclude a branch from its parent’s group, use g(-1).

Hope that helps,

Matt.

Edited by Matt_K
Link to comment
Share on other sites

Hey Josh,

Just a rough idea - not able to test it right now, but what about grouping any points in the F, and then instance/copy stamp onto those points?

From the houdini help:

Hope that helps,

Matt.

Hey thanks, I'll give it a try and will let you know.

Link to comment
Share on other sites

I was wondering if anyone knew if it was possible (or not) to instance geometry on a step forward (the F variable) using L-systems in the same way that leaves or flowers can be instanced for the variables J, K, L, and M.

Why not just embed a J into the rule, in front of (or after) the F you want to instance to?

It doesn't move the turtle or interfere with the system in any way.

J/K/L/M do not have to be at the extremities of the system.

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...