Jump to content

Like Sketch ?


Recommended Posts

  • 4 weeks later...
On 14/03/2021 at 12:17 AM, konstantin magnus said:

The measure SOP has a principal curvature direction you could use for hatching.



This is nice, thanks Konstantin.

I quickly did a test to combining with gradient,  interesting...

I guess i have to make a custom "triplanar"network to blend each gradient result for each component of my input vector to measure.




Vincent Thomas   (VFX and Art since 1998)
Senior Env and Lighting  artist & Houdini generalist & Creative Concepts



  • Like 1
Link to comment
Share on other sites

  • 6 months later...

wow.. you are really incredible..

Please, what is this language in Attribute wrangle?

"string direction = chs('direction');
vector pos = v@P;
vector dir = point(0, direction, i@ptnum);

int pts[] = array(i@ptnum);
int steps = 30;
float angle = 1.0;
while(steps > 0 && angle > -0.1){
    pos += normalize(dir) * 0.002;
    int prim;
    vector uvw;
    xyzdist(1, pos, prim, uvw);
    vector dir_old = dir;
    dir = primuv(1, direction, prim, uvw);
    angle = dot(dir_old, dir);
    if(angle < 0.0){
        dir *= -1.0;
    int pt_add = addpoint(0, pos);
    append(pts, pt_add);
addprim(0, 'polyline', pts);"


thank you very much.


bests regards

Link to comment
Share on other sites

32 minutes ago, supermac said:

Please, what is this language in Attribute wrangle?

It's Houdini's own shader language called VEX. Matt Estella provides an artist friendly introduction:

The same programming can also be done visually using VOP nodes which is probably easier for starters.

Link to comment
Share on other sites

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