Jump to content

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.

https://vimeo.com/sabervfx/hairfx#t=1054s

CurveRotate.thumb.jpg.ebc1c6384031680270a4b119abc03eb4.jpg

Here is the file scene !

ClumpStudies.hipnc

 

 

Share this post


Link to post
Share on other sites

I am also looking for this solution.

Share this post


Link to post
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.

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;

hair_xform.png.0bed018f45018d6e2b50d0cafd4cde02.png

twist_around_curves.hipnc

  • Like 2
  • Thanks 1

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

×