Jump to content
alite

Noob Alert - How to control quaternion rotation along point normals in copy to points.

Recommended Posts

Hello

I've just started dipping my toes in Houdini land, coming from c4d, and I'm really hitting a wall where tutorials and the wiki isn't helping me, being more an artist than a mathematician :-) So bear with me.

I'm modeling 1 part out of 4 - of a round object, and trying to clone (copy to points) some torus objects onto some specific points. The part has 1 center piece, and 6 surrounding pieces, and a wan't my torus objects to be perpendicular from the center piece towards the surrounding pieces, so they form kind of a bridge, or some stitches if you will. I hope i make myself clear, English isn't my native language, but also see attached image.

I've googled long enough to figure out that it might be some kind of issue with the quaternion rotating along the point normal - But I'm not much of a VEX guy, and I can't seem to figure out which nodes to use in VOPs. So my last resort is reaching out here and asking for help.

See attached image - The selected rings is rotated pretty much correct. How do i rotate the remaining ones.
Also see attached file.

Hoping for some magic help on this one :-)

Copy_Angle_Help.png

Copy_Angle_Help.hip

Share this post


Link to post
Share on other sites

Convert edges to lines, use polyframe to create vectors along this edges, and then create quaternion from N and vector along line.

Share this post


Link to post
Share on other sites
7 minutes ago, tamagochy said:

Convert edges to lines, use polyframe to create vectors along this edges, and then create quaternion from N and vector along line.

Thanks but I'm not sure I understand.
Would It be a hassle to get you to make a file for me?
Would really appreciate it.

Share this post


Link to post
Share on other sites

in your resample2 node check Tangent Attribute and name it: up

then just rotate your "stitch" geo before copying by 90 in Z

  • Like 1

Share this post


Link to post
Share on other sites
22 hours ago, anim said:

in your resample2 node check Tangent Attribute and name it: up

then just rotate your "stitch" geo before copying by 90 in Z

Hey Tomas

Thanks you so much !!
I can't believe it was that easy... I've been messing with this the whole week! 
Thank you for taking the time to look at the file.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×