Jump to content

Interactive constraint on surface


Recommended Posts

Hi, please see the attached Cinema 4D video of what I am trying to replicate in Houdini.

I want to interactively position an object on a surface using handles.

I made some progress with the Creep SOP, but it has several limitations:

  • it deforms the source object, which I don't want
  • it doesn't have viewport handles, so I have to edit the node parameters, which is undesirable (I have a lot of objects to manually position, so I want to make it as easy as possible)
  • it doesn't work with polygonal objects

I don't mind using VEX or an Attribute VOP to achieve this.

Thanks.

Slide_on_Surface.mp4

Link to comment
Share on other sites

What you need to do is:

1. check Normal of you object in point of interest

2. build rotation matrix and apply rotation onto your object

3. move your object to point of interest

There are many ways to do it:

To check Normal of your object in point of interest you can simply create create point on that object, or RAY a point or attribute transfer carve etc

To build rotation matrix and apply rotation you can use dehidral(set(0,0,1), v@N); v@P *= yourmatrix;or just use copy sop which will do it for you

Edited by tmdag
Link to comment
Share on other sites

Hi Albert, thanks for the quick response. I'm sure your method works, but I am brand new to Houdini, so pretty much everything you said went flying over my head. However, I did find a much simpler solution, using the Sticky object.

I just need to project UVs onto the object, and everything works fine, especially with Wrap U and Wrap V turned on. I've attached a clip.

Cheers, and thanks again.

Houdini_Sticky_Object.mp4

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