Constraint one curve to another (Trunk -> branch)

   755   3   0
User Avatar
Member
1007 posts
Joined: April 2017
Offline
Hi!

I've got 2 curves representing a trunk and a branch. I'm using a vellumHair and a vellum Solver. When I press play, it all falls down. Fantastic!

...Now, I'd like the branch curve to be attached to the trunk curve. How do I do that? Is there a specific node for that? Can I do it in vex?

I've never worked with constraint so I'm a bit clueless.

-Olivier

Attachments:
Houdini_tree_curves_constraint.JPG (21.5 KB)

User Avatar
Member
4 posts
Joined: July 2017
Offline
You can fuse the points in a variety of ways. A simple fuse by distance will get you started.

If you are doing what I think you are doing bare in mind to get a more stable solve you should use as few points as possible to the extreme...
User Avatar
Member
1007 posts
Joined: April 2017
Offline
My goal was to not fuse the branch to the trunk. The spacing makes sens since the trunk has thickness. Isn't there a way I can simply make a constraint that "links" the bottom of the branch to the trunk?

I tried using a vellumConstraint set to Glue. The branch is attached to the trunk but moves like a pendulum (it doesnt keep it's initial position/angle).

Since I love vex, I wish I could learn how to create those constraints myself.
User Avatar
Member
56 posts
Joined: April 2008
Offline
This is a simple example file, hope it helps.

Attachments:
simple_branch.hip (620.3 KB)

  • Quick Links