# Rotate clumps?

## Recommended Posts

Hi !

I'm trying to rotate clumps using vex, I'm new into Houdini closest I could get is using this vex code from konstantin magnus on "how to rotate faces along Normal?" topic,

but the clump rotates on the wrong axis =(

I want achieve the results in this video at 17:32 (Hair FX in Houdini - GDC 2017 Talk) where Saber Jlassi does some really great twists on the clumps.

Here is the file scene !

##### Share on other sites

• 1 year later...

I am also looking for this solution.

##### Share on other sites

Hi José,

you can twist curves around other curves by rotating lots of copied cone lines using noise on a rotate VOP. Then transfer those twisted curves to the position and orientation along other curves based on transformation matrices from the orient along curves-node.

```float u = 1.0 - vector(relbbox(0, v@P)).z;
int copy = prim(0, 'copynum', i@primnum);
matrix trans = primuv(1, 'transform', copy, u);

v@P.z = 0.0;
v@P *= trans;```

twist_around_curves.hipnc

• 3
• 3
##### Share on other sites

I dialed in the numbers so it resembles hair a little more.

twist_around_curves_HAIR.hipnc

• 2
• 1
##### Share on other sites

• 2 years later...

SOOOO GOOD~

THANKS A LOT

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

Reply to this topic...

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

×
×