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

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 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 on other sites

play with this method.

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

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 on other sites

Hi there,

Also I think there are some info that I found can help you to better understand quaternions/orient and matrices.

Hope this would help.

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.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×