Jump to content

L-system between objects


Recommended Posts

Hello! does anyone know if it is possible (its houdini, ofcourse it is) to connect the root of an L-system to an object/point and the tips to another object/point? sort of like a lighting bolt between to different objects. I cannot seem to find any way of doing this, any help would be greatly appriceated! :)

Link to comment
Share on other sites

you can copy an l-system to a point just as you would any other geometry - just make sure of your normals etc

 

as for attaching the tips, no, I don't think so - you can however grow an l-system TOWARD a point in space

see the docs ->

Turtle Command Reference

$(x,y,z):

Rotates the turtle so the up vector is (0,1,0). Points the turtle in the direction of the point (x,y,z). Default behavior is only to orient and not to change the direction.

 

you can use ch() expressions to set the x,y,z

Link to comment
Share on other sites

Maybe consider creating a line between those points, using that as the animated goal of a lattice with the base lattice being the line between the base and tip of your L-system. Basically bending and transforming it to where you want it. That's the Points tab of the Lattice SOP. First input is your lsystem, second is your base line, and third is your goal line between your objects.

Link to comment
Share on other sites

Not quite point to point connections ( if you want that, you will have to build your own venation system -- look up some examples on vimeo or here), but something that is cool to do with lsystems is to creep them onto/over other surfaces. This works quite well - just make sure to resample the lsystem enough beforehand if you are planning on 'bending' it.
 

  • Like 1
Link to comment
Share on other sites

thanks for all the answers! I will try to get my head around the L-system today, if that doesnt work i think the easiest method would be to use curves that are branching from one main curve and then somehow make them grow along their on path

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