Jump to content

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 !




Link to comment
Share on other sites

  • 1 year later...

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.

hair_cone.png.75dcec019b03a9000e2f7a009063977b.png hair_guides.png.0d33ca0a6ede72556092add91cb0505a.png

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;



  • Like 3
  • Thanks 3
Link to comment
Share on other sites

  • 2 years later...

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